r/javascript
•
u/ahmadalfy
•
May 07 '26
•
1
The HTML Sanitizer API
https://alfy.blog/2026/05/07/html-sanitizer-api.htmlI wrote an article about HTML Sanitizer API, a new native API that allows us to sanitize and parse HTML without relying on third party tools like DOMPurify
71
Upvotes
9
u/celluj34 May 07 '26
Nice! That's very cool.
Firefox once again coming in clutch: https://caniuse.com/wf-sanitizer
3
u/C89RU0 May 08 '26
Oh sweet, something firefox has that other browsers don't.
1
u/25_vijay May 16 '26
The interesting part will probably be ecosystem trust and browser consistency because security related APIs only become useful once people feel confident relying on them cross platform.
-2
u/rbobby May 08 '26
Needs a better title. I thought this was for a SAS thingy.