Decision Workspace
dom_sanitizer vs html-cleaning vs ammonia
Side-by-side comparison of Rust crates
56
dom_sanitizer
experimentalv0.6.0
Flexible HTML sanitization for Rust — build policies and sanitize documents easily.
53
html-cleaning
experimentalv0.2.0
HTML cleaning, sanitization, and text processing utilities
67
ammonia
growingv4.1.2
HTML Sanitization
Core Metrics
| dom_sanitizer | html-cleaning | ammonia | |
|---|---|---|---|
| Health Score | 56 | 53 | 67 |
| Total Downloads | 4.6K | 25 | 10.2M |
| 30d Downloads | 309 | 25 | 516.7K |
| Dependents | 2 | 2 | 1.3K |
| Releases | 9 | 1 | 39 |
| Last Updated | 12d ago | 3d ago | 187d ago |
| Age | 10m | 3d | 10y 6m |
Health Breakdown
dom_sanitizer
Maintenance
21
Quality
15
Community
4
Popularity
4
Documentation
12
html-cleaning
Maintenance
13
Quality
16
Community
7
Popularity
2
Documentation
15
ammonia
Maintenance
11
Quality
13
Community
20
Popularity
8
Documentation
15
Technical Details
| dom_sanitizer | html-cleaning | ammonia | |
|---|---|---|---|
| Version | 0.6.0 | 0.2.0 | 4.1.2 |
| Stable (≥1.0) | ✗ No | ✗ No | ✓ Yes |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 4 | 5 | 7 |
| Crate Size | 24KB | 30KB | 57KB |
| Features | 2 | 5 | 0 |
| Yanked % | 0.0% | 0.0% | 66.7% |
| Edition | 2021 | 2021 | 2021 |
| MSRV | 1.75 | 1.75 | 1.80 |
| Owners | 1 | 1 | 2 (team) |
Links
Quick Verdict
- •ammonia leads with a health score of 67/100, but none of the options score above 80.
- •ammonia is depended on by 1.3K crates — strongest ecosystem trust.
- •dom_sanitizer, html-cleaning are pre-1.0 — API may change.