Decision Workspace
dom_sanitizer vs html-cleaning vs ammonia
Side-by-side comparison of Rust crates
51
dom_sanitizer
growingv0.6.0
Flexible HTML sanitization for Rust — build policies and sanitize documents easily.
53
html-cleaning
experimentalv0.3.0
HTML cleaning, sanitization, and text processing utilities
74
ammonia
stablev4.2.1
HTML Sanitization
Core Metrics
| dom_sanitizer | html-cleaning | ammonia | |
|---|---|---|---|
| Health Score | 51 | 53 | 74 |
| Total Downloads | 13.5K | 22.5K | 18.1M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 2 | 5 | 2.1K |
| Releases | 9 | 2 | 48 |
| Last Updated | 208d ago | 195d ago | 7d ago |
| Age | 1y 5m | 6m | 11y 1m |
Health Breakdown
dom_sanitizer
Maintenance
14
Quality
16
Community
4
Popularity
5
Documentation
12
html-cleaning
Maintenance
9
Quality
16
Community
8
Popularity
5
Documentation
15
ammonia
Maintenance
18
Quality
13
Community
20
Popularity
8
Documentation
15
Technical Details
| dom_sanitizer | html-cleaning | ammonia | |
|---|---|---|---|
| Version | 0.6.0 | 0.3.0 | 4.2.1 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 4 | 5 | 6 |
| Crate Size | 24KB | 31KB | 65KB |
| Features | 2 | 5 | 0 |
| Yanked % | 0.0% | 0.0% | 54.2% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.75 | 1.75 | 1.85 |
| Owners | 1 | 1 | 2 (team) |
Links
Quick Verdict
- •ammonia leads with a health score of 74/100, but none of the options score above 80.
- •ammonia is depended on by 2.1K crates — strongest ecosystem trust.
- •dom_sanitizer, html-cleaning are pre-1.0 — API may change.