Back to Dompurify

DOMPurify 3.4.2 "Mythotron"

website/index.html

3.4.21.4 KB
Original Source

DOMPurify 3.4.2 "Mythotron"

This is the demo for DOMPurify, a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, SVG and MathML. The textarea below contains sample-payload - you can also add your own. Watch it sanitize on the console or in the Iframe below.


Sanitize textarea value, then write result to consoleSanitize textarea value, then write result to DOMAuto convert?Sanitize textarea value, then use $(elm).html()


Timings:

Dirty HTML

Clean HTML

Clean DOM

Embedded content