Re:Goodbye InnerHTML, Hello SetHTML: Stronger XSS Protection...
by kccqzy on Tuesday February 24, 2026 @10:50AM
(#47138627)
There’s innerText if you don’t want markup. Or more verbosely, document.createTextNode followed by whatever.appendChild.
[ Parent
| on HN ]
There are no comments on this comment yet.