Back to Dompurify

DOMPurify Demo

website/index.html

3.4.10922 B
Original Source

ExampleUpstream test vectorsBasic img onerrorSVG onloadMathML link payloadDOM clobbering-ish markupHarmless rich text

PresetDefault: HTML + SVG + MathMLHTML onlyStrict: b, i, em, strong, aTemplate-safe helperTrusted Types return value

Options Auto-run jQuery sink Safe preview

Sanitize

Dirty HTML

0 chars

Clean HTML

0 chars

Clean DOM Preview

Detection mode: dialogs allowed

Embedded content

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.

Helper note: DOMPurify.removed is shown for curiosity and debugging only. Do not use it for security-critical decisions.