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
17199
856
Apache License 2.0
DOMPurify is a fast and highly configurable XSS sanitizer for HTML, MathML, and SVG, designed to prevent cross-site scripting attacks by stripping out dangerous elements and attributes from user-supplied markup. It is primarily used by developers and security teams to safely render untrusted HTML content in web applications.
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.