Comparison
clear-html vs html-sanitizer vs nh3
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Clean and normalize HTML.
Maintained. Last release 13 months ago, commits in 4 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install clear-htmlHTML sanitizer
Maintained. Last release 6 days ago, commits in 4 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install html-sanitizerPython binding to Ammonia HTML sanitizer Rust crate
Actively maintained. Last release 2 weeks ago, commits in 12 of the last 26 weeks. A safe choice.
$
pip install nh3In short
- nh3 is the most used: 45.8M downloads a month, 75× more than html-sanitizer.
- nh3 also has the best Pythie’s Index (87).
- clear-html is growing fastest: downloads +792% over the last month.
- Safe default for a new project: nh3.
Side by side
| Metric | clear-html | html-sanitizer | nh3 |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 41 | 54 |