You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feature has been supported since Chrome and Edge version 146 and Firefox version 148. This tweet has 445 likes. This Bluesky post has 203 likes.
The Sanitizer API has 79 votes in the developer signals repo, making it one of the most popular features (eleventh place out of 358 features).
Reacted by Ian Duffy, MaxwellCohen, jack, Nilesh Prajapati, Zach Saucier, Christopher Kirk-Nielsen, Anton, Luke Warlow, Jaime Burgos, Jeff Hitchcock and 88 more
Reacted by Owen Buckley, phantomxx29474, Andrei Jiroh Halili and Persijn kwekkeboom
This comment was automatically generated based on the information you provided. Please don't edit it.
Below is additional information about the web feature (from the web-features project) which is referenced in your proposal.
If this doesn't accurately correspond to your proposal, please update your initial comment to include web-features: <feature-id>.
To find feature IDs, use the web-features explorer.
Feature Sanitizer API
ID: sanitizer
Name: Sanitizer API
Description: The Sanitizer API customizes the sanitization of HTML parsed and inserted into the DOM in a way that can prevent cross-site scripting attacks. You can use it with DOM APIs that accept a sanitizer option, such as parseHTML() or setHTML().
Activity
github-actions commentedon Sep 3, 2026
This comment was automatically generated based on the information you provided. Please don't edit it.
Below is additional information about the web feature (from the web-features project) which is referenced in your proposal.
If this doesn't accurately correspond to your proposal, please update your initial comment to include
web-features: <feature-id>.To find feature IDs, use the web-features explorer.
Feature Sanitizer API
SanitizerAPI customizes the sanitization of HTML parsed and inserted into the DOM in a way that can prevent cross-site scripting attacks. You can use it with DOM APIs that accept a sanitizer option, such asparseHTML()orsetHTML().