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:
Recent spike, 1.4× faster than Developer Tooling this week
17,367 → 17,428 stars since Sep 8