JavaScript

Goodbye innerHTML, Hello setHTML: Stronger XSS Protection in Firefox 148

Firefox 148 is the first browser to ship the standardized Sanitizer API, which lets developers sanitize untrusted HTML before inserting it into the page’s DOM. The API is intended to help prevent cross-site scripting, in which attackers inject HTML or JavaScript through user-generated content. Mozilla says it expects other browsers to adopt the API.

AI-written summary, checked against the cited sources. How summaries work

Read at Mozilla Hacks