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:
AddressSanitizer, ThreadSanitizer, MemorySanitizer
[Go] Package of validators and sanitizers for strings, numerics, slices and structs
Rust newtype with guarantees πΊπ¦ π¦
Cleans HTML to avoid XSS attacks
Takes third-party HTML and produces HTML that is safe to embed in your web application. Fast and easy to configure.
Use DOMPurify on server and client in the same way
Start Rails in one command
A PHP SVG/XML Sanitizer
Framework-agnostic log sanitizer for browsers and Node.js. Redacts secrets and infrastructure identifiers with stable HMAC tokens so event correlation still works. Zero runtime dependencies, extensible rules, CLI included.