DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG.

It's also very simple to use and get started with.

DOMPurify is written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Edge, Firefox and Chrome - as well as almost anything else using Blink or WebKit). It doesn't break on IE6 or other legacy browsers. It simply does nothing there. Our automated tests cover 9 different browsers right now.

DOMPurify is written by security people who have vast background in web attacks and XSS. Fear not. For more details please also read about our Security Goals & Threat Model

Code Quality Rank: L2
Monthly Downloads: 0
Programming language: JavaScript
License: Apache License 2.0
Tags: Security     SVG     HTML     DOM     Filter     Sanitize     Xss     Purify     Sanitizer     Secure     Mathml    

DOMPurify alternatives and related libraries

Based on the "Security" category

Do you think we are missing an alternative of DOMPurify or a related project?

Add another 'Security' Library

DOMPurify Recommendations

There are no recommendations yet. Be the first to promote DOMPurify!

Have you used DOMPurify? Share your experience. Write a short recommendation and DOMPurify, you and your project will be promoted on Awesome JavaScript.
Recommend DOMPurify

Recently added DOMPurify resources

Do you know of a usefull tutorial, book or news relevant to DOMPurify?
Be the first to add one!