Web DevelopmentFebruary 24, 2026•Mozilla Hacks
Goodbye innerHTML, Hello setHTML: Stronger XSS Protection in Firefox 148
Article summary
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, ad
Verified original source
We do not reproduce the full article. Open the original publication to read the complete material and verify the source.
Open Mozilla Hacks ↗