svgScriptComment
Splits every character and adds a XML comment around it with SVG script.
Created by: hackvertor
Installed 1 times
Category: XSS
Created on: Tuesday, October 29, 2024 at 9:54:04 PM
Updated on: Sunday, November 3, 2024 at 12:06:47 PM
Tag arguments
[]
Code
class svgScriptComment {
encode(input) {
return (
"<svg><script>" + input.split("").join("<!---->") + "</script></svg>"
);
}
}