Mozilla Hacks company blog

Goodbye InnerHTML, Hello SetHTML: Stronger XSS Protection in Firefox 148

Cross-site scripting (XSS) remains one of the most prevalent vulnerabilities on the web. The new standardized Sanitizer API provides a straightforward way for web developers to sanitize untrusted HTML before inserting it into the DOM. Firefox 148 is the first browser to ship this standardized security enhancing API…
Points
373
HN comments
159
Submissions
1
Cited by
0 commenters

Security & PrivacyWeb & Frontend2026

On Hacker News

SubmittedTitle on HNPointsComments
Feb 24, 2026Goodbye InnerHTML, Hello SetHTML: Stronger XSS Protection in Firefox 148 by todsacerdoti373159

More from Mozilla Hacks

All 219 posts →

Related posts from the same era