Add HTML escaping

This commit is contained in:
2025-09-17 23:31:42 +02:00
parent 7ffbe39bca
commit ec81d10d43
3 changed files with 223 additions and 42 deletions
+2 -3
View File
@@ -1,6 +1,5 @@
let username = <script>alert('You\'ve been HACKED!')</script>
let a = []
<span>Hello, my name is \escape(username)</span>
a << 1 << 2
a