pkg.land
Beta
dompurify

3.2.5

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else usin

Weekly Downloads
9.5M
Last Published

Suggestions

Sort by

sanitize-html

2.16.0

Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis

2.9M
NPMGitHub

Makes it possible to use DOMPurify on server and client in the same way.

998.9K

Strips out all JavaScript code from some HTML text

1.1K

Prettier is an opinionated code formatter

48.9M

Follow for updates

Keep up-to-date with new features, changelog and more

@pkgland

📦 🏝