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:
javascript svg html security dom xss mathml sanitizer dompurify cross-site-scripting prevent-xss-attacks
-
Updated
Aug 16, 2025 - JavaScript