
The HTML Sanitizer API
Browser-native XSS-safe HTML insertion without DOMPurify or other libraries.
Web Standards
Daily web platform news

Browser-native XSS-safe HTML insertion without DOMPurify or other libraries.

setHTML(), Trusted Types and the Sanitizer APINew setHTML() and Sanitizer API prevent XSS by safely inserting HTML into the DOM.