Show HN: I built an extendable full document markup language
Category: security
Tags: xss-prevention, sanitizer, security, html, javascript
Score: 8.3/10 (Innovation: 6, Technical: 9, Documentation: 9, Utility: 9)
DOMPurify is a DOM-only, super-fast XSS sanitizer for HTML, MathML and SVG, widely adopted and maintained by security experts. It combines browser-native parsing with a strict allowlist to neutralize dangerous content, and its design inspired the W3C HTML Sanitizer API standard. Its extensive documentation, security model, and broad browser/Node.js support make it a critical security tool for web developers.
Target audience: frontend devs, backend devs, security engineers, web developers
Repository: https://longform.occultist.dev · JavaScript · Apache-2.0 · 17139 stars
View on Hacker News