diff --git a/plotly/plotly_offline_aux/plotlyoffline.m b/plotly/plotly_offline_aux/plotlyoffline.m index 21444a10..d9dca9e6 100644 --- a/plotly/plotly_offline_aux/plotlyoffline.m +++ b/plotly/plotly_offline_aux/plotlyoffline.m @@ -80,7 +80,7 @@ % save the html file in the working directory plotlyOfflineFile = fullfile(plotlyfig.PlotOptions.SaveFolder, htmlFilename); fileID = fopen(plotlyOfflineFile, 'w'); - fprintf(fileID, offlineScript); + fprintf(fileID, '%s', offlineScript); fclose(fileID); % remove any whitespace from the plotlyOfflineFile path