Comparison
bleach vs clear-html vs html-sanitizer
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
An easy safelist-based HTML-sanitizing tool.
Archived. The repository is read-only: no more fixes or releases will come.
$
pip install bleachClean 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-sanitizerIn short
- bleach is archived: avoid it for new projects.
- html-sanitizer is the most used: 607K downloads a month.
- html-sanitizer also has the best Pythie’s Index (54).
- clear-html is growing fastest: downloads +792% over the last month.
Side by side
| Metric | bleach | clear-html | html-sanitizer |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 9 | 41 |