Skip to content

Commit

Permalink
Use double quotes for HTML attribute of demo page containing JSON.str…
Browse files Browse the repository at this point in the history
…ingify output (because that escapes double quotes but not single quotes and encodeURIComponent also ignores single quotes).
  • Loading branch information
DavidAnson committed Dec 17, 2024
1 parent e959c1e commit 599b687
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/>");
}
Expand Down

0 comments on commit 599b687

Please sign in to comment.