Use double quotes for HTML attribute of demo page containing JSON.stringify output (because that escapes double quotes but not single quotes and encodeURIComponent also ignores single quotes).

This commit is contained in:
David Anson 2024-12-16 20:14:33 -08:00
parent e959c1e522
commit 599b687849

View file

@ -130,9 +130,9 @@
"\"</span>]" :
"") +
(result.fixInfo ?
" [<a href='#fix' target='" +
" [<a href='#fix' target=\"" +
encodeURIComponent(JSON.stringify(result)) +
"' class='detail'>Fix</a>]" :
"\" class='detail'>Fix</a>]" :
"");
}).join("<br/>");
}