Demo build: main
DOMPurify: loading…
HTML · SVG · MathML
DOMPurify Demo
Paste dirty markup, choose a preset, and inspect the sanitized string, rendered DOM, timing, and removed elements/attributes. The default preview is intentionally detection-oriented, so modal dialogs are not suppressed when testing bypasses.
Clean HTML
Clean DOM Preview
Detection mode mirrors the old demo behavior: sanitized output is rendered in the frame and dialogs may pop if a bypass executes. Safe preview restricts rendering for quieter inspection, but it is not the primary bypass signal.
Timing
–
Removed
–
Active config
{}
Removed elements and attributes
Sanitize something to inspect DOMPurify.removed.