Acervo
1
DOMPurify

DOMPurify

framework
Vanilla JS
category
Security
status
maintained

HTML and SVG sanitiser that removes dangerous content before it reaches the DOM.

stars
17.5K
downloads/mo
280.6M
license
Apache-2.0
since
2014

Highlight

The default defence against XSS when you need to render third-party HTML.

Tags

securityxsssanitisationdom

Related libraries

Alternatives from the same category or stack.

GitHub stars: 17,502. Metrics may be out of date — run npm run sync:github to refresh them.