Goodbye innerHTML, Hello setHTML: Stronger XSS Protection in Firefox 148
Firefox 148 is the first browser to ship the standardized Sanitizer API, whose setHTML() method sanitizes untrusted HTML as it is inserted into the DOM, for example stripping an <img> with an onclick handler while keeping safe elements like <h1>.