npm package
Homesanitize-html
sanitize-html is a simple HTML sanitizer that cleans up user-submitted HTML while preserving allowlisted elements and attributes. It is particularly useful for sanitizing HTML fragments from rich text editors and ensuring that unwanted CSS is removed.
- lurq health score
- 77/100
- Confidence
- proven
- Weekly downloads
- 10,280,504
- Latest version
- 2.17.7
- Last release
- Aug 13, 2026
- License
- MIT
Should you depend on sanitize-html?
lurq's verdict: low
- No known advisories
Check this from your coding agent
This page is a daily snapshot. lurq's verify tool checks sanitize-html at the exact version your agent is about to install, and compat checks it against the rest of your stack. One command connects Claude Code, Cursor, VS Code and other agents:
npx lurqrun
Free to start. Quickstart
Other styling packages lurq scores
- @mui/private-theming94/100 · proven
- @mui/system93/100 · proven
- remeda93/100 · proven
- gaxios91/100 · proven
- @internationalized/number91/100 · proven
Scored from public signals (npm registry, GitHub, deps.dev and advisory databases). Data as of Sep 4, 2026; this page refreshes every 24 hours. Source repository.