Provides an object-oriented API to sanitize untrusted HTML input for safe insertion into a document's DOM.
↑ +2 today
Discover the most starred and trending open source tools tagged with #sanitizer.
Provides an object-oriented API to sanitize untrusted HTML input for safe insertion into a document's DOM.
DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:
A library that detects and filters common unicode confusables/homoglyphs.