We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e03c64a + 50fb0c7 commit 8aceeb9Copy full SHA for 8aceeb9
resources/js/services/excanvas.js
@@ -846,6 +846,15 @@ if (!document.createElement('canvas').getContext) {
846
const w2 = sw / 2;
847
const h2 = sh / 2;
848
849
+ function escapeHtml(unsafe) {
850
+ return unsafe
851
+ .replace(/&/g, "&")
852
+ .replace(/</g, "<")
853
+ .replace(/>/g, ">")
854
+ .replace(/"/g, """)
855
+ .replace(/'/g, "'");
856
+ }
857
+
858
const vmlStr = [];
859
860
const W = 10;
@@ -928,7 +937,7 @@ if (!document.createElement('canvas').getContext) {
928
937
vmlStr.push(
929
938
' ">',
930
939
'<g_vml_:image src="',
931
- image.src,
940
+ escapeHtml(image.src),
932
941
'"',
933
942
' style="width:',
934
943
Z * dw,
0 commit comments