DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:
This repository is tracked by Trending Repos. Every embed updates itself — and the badge upgrades to a medal tier the moment you crack the top 100. Set it once and forget it.
Animated rank-tier badge with your live star count built in. Starts bronze, upgrades automatically the moment your repo climbs — gold at #1, silver top-3, bronze top-10. Shows your best-ever rank, permanently.
[](https://trending-repos.com/repositories/cure53/DOMPurify?utm_source=github&utm_medium=badge)Compact momentum card: stars, recent velocity, a 14-day sparkline and your rank tier. The at-a-glance proof your project is moving.
[](https://trending-repos.com/repositories/cure53/DOMPurify?utm_source=github&utm_medium=card)A live star-growth chart that replaces static screenshots forever. Light and dark variants; GitHub picks the right one automatically with the HTML snippet.
<a href="https://trending-repos.com/repositories/cure53/DOMPurify?utm_source=github&utm_medium=chart"><picture><source media="(prefers-color-scheme: dark)" srcset="https://trending-repos.com/chart/cure53/DOMPurify.svg?theme=dark"><img alt="Star growth of cure53/DOMPurify" src="https://trending-repos.com/chart/cure53/DOMPurify.svg" width="720"></picture></a>[](https://trending-repos.com/repositories/cure53/DOMPurify?utm_source=github&utm_medium=chart)