cyberchef 9.37.1 → 9.37.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cyberchef",
|
|
3
|
-
"version": "9.37.
|
|
3
|
+
"version": "9.37.2",
|
|
4
4
|
"description": "The Cyber Swiss Army Knife for encryption, encoding, compression and data analysis.",
|
|
5
5
|
"author": "n1474335 <n1474335@gmail.com>",
|
|
6
6
|
"homepage": "https://gchq.github.io/CyberChef",
|
package/src/core/Utils.mjs
CHANGED
|
@@ -723,8 +723,8 @@ class Utils {
|
|
|
723
723
|
}
|
|
724
724
|
|
|
725
725
|
if (removeScriptAndStyle) {
|
|
726
|
-
htmlStr = recursiveRemove(/<script[^>]*>.*?<\/script
|
|
727
|
-
htmlStr = recursiveRemove(/<style[^>]*>.*?<\/style
|
|
726
|
+
htmlStr = recursiveRemove(/<script[^>]*>.*?<\/script[^>]*>/gi, htmlStr);
|
|
727
|
+
htmlStr = recursiveRemove(/<style[^>]*>.*?<\/style[^>]*>/gi, htmlStr);
|
|
728
728
|
}
|
|
729
729
|
return htmlStr.replace(/<[^>]+>/g, "");
|
|
730
730
|
}
|