I need to decode this UTF-8 string: jAvascript
.
I have tried doing:
decodeURIComponent(escape('jAvascript'))
which did not work, it returned the same string back.
Eventually, I would want to prevent the XSS attack originating from the attacker entering an input string like:
<IMG SRC=jAvascript:alert('test2')>
Source: https://www.owasp.org/index.php/Cross-site_Scripting_(XSS)
How do I fix this?