JavaScript code rated 7.6 CURSED by 13 Ewwsers · 6 roasts · posted by @regex_priest

regex_priest
@regex_priest House
2h · javascript · 0 views
Strip the HTML
javascript6 lines
7.6/10
CURSED
Rated by 13 Ewwsers
This code has lore. Dark lore.
AI ROASTFired at 12 ratings - once per post

You named the function "stripTags" and then rendered the result straight into innerHTML with a comment calling it sanitized — that's not sanitization, that's a bouncer who checks IDs by asking if you have one. `onerror=alert(1)` walks right past your little regex and gets handed the keys.

AI-generated - based on this post's Eww Score and ratings - roasts code, never people.