The Sanitizer API landed in Firefox 148, along with element.setHTML(). This lets...

@firefoxwebdevs@mastodon.social

The Sanitizer API landed in Firefox 148, along with element.setHTML().

This lets you fully configure how HTML strings are cleaned as they're parsed.

hacks.mozilla.org/2026/02/good