mirror of
https://github.com/gchq/CyberChef
synced 2025-12-17 08:43:43 +00:00
BIGFIX: 'Show Base64 Offsets' operation now escapes input before adding to tooltips.
This commit is contained in:
@@ -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, "&");
|
||||
},
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user