mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-14 01:56:54 -04:00
BIGFIX: 'Show Base64 Offsets' operation now escapes input before adding to tooltips.
This commit is contained in:
parent
20d9903572
commit
e4d30861d5
6 changed files with 37 additions and 34 deletions
|
@ -875,7 +875,10 @@ var Utils = {
|
|||
* Utils.escape_html("A <script> tag");
|
||||
*/
|
||||
escape_html: function(str) {
|
||||
return str.replace(/</g, "<");
|
||||
return str.replace(/</g, "<")
|
||||
.replace(/'/g, "'")
|
||||
.replace(/"/g, '"')
|
||||
.replace(/&/g, "&");
|
||||
},
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue