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: Wednesday, November 20, 2024 at 5:32:25 PM

This is a built in tag
Tag arguments
[]
Code
class svgScriptComment {
  encode(input) {
    return (
      "<svg><script>" + input.split("").join("<!---->") + "</script></svg>"
    );
  }
}