Sanitizer API deprecation

Jack J
Jack J

Work on the Sanitizer API began in 2020, with the aim of building a secure API to sanitize HTML on browsers.

Chrome shipped an initial version of the Sanitizer API in Chrome 105, based on the specification draft at that time. We introduced this version of the API to developers, and gathered useful implementation experience.

However, changes to the specification mean that the proposed API shape has changed substantially. To prevent the current API from becoming entrenched, we decided to deprecate the current implementation in Chrome 119.

See more details in Intent to Deprecate: Remove "Sanitizer API MVP".

The new API is still being discussed in the WICG, and we intend to implement the result in Chrome when the specification matures. We'll post an article to introduce it once it’s ready.