Comparison
clear-html vs html-sanitizer vs lxml-html-clean
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-sanitizerHTML cleaner from lxml project
Maintained. Last release 6 days ago, commits in 2 of the last 26 weeks. Weaker on commit activity.
$
pip install lxml-html-cleanIn short
- lxml-html-clean is the most used: 22.9M downloads a month, 38× more than html-sanitizer.
- Maintenance is comparable: lxml-html-clean 62, html-sanitizer 54, clear-html 41 on Pythie’s Index.
- clear-html is growing fastest: downloads +792% over the last month.
- Safe default for a new project: lxml-html-clean.
Side by side
| Metric | clear-html | html-sanitizer | lxml-html-clean |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 41 | 54 |