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:
Repository Index
47,133 repositories indexed
1–4 of 4 · Most stars
Cleans HTML to avoid XSS attacks
Provides an object-oriented API to sanitize untrusted HTML input for safe insertion into a document's DOM.
Zero-dependency Go input validation, in-place normalization, and JSON Schema generation from struct tags.