Decision Workspace
htmlsanitizer vs ammonia vs svg-hush
Side-by-side comparison of Rust crates
41
htmlsanitizer
experimentalv0.2.0
A fast, allowlist-based HTML sanitizer
67
ammonia
growingv4.1.2
HTML Sanitization
58
svg-hush
growingv0.9.6
Strip scripting and other abusable features from SVG files
Core Metrics
| htmlsanitizer | ammonia | svg-hush | |
|---|---|---|---|
| Health Score | 41 | 67 | 58 |
| Total Downloads | 29 | 10.2M | 133.6K |
| 30d Downloads | 29 | 516.7K | 18.6K |
| Dependents | 0 | 1.3K | 3 |
| Releases | 3 | 39 | 7 |
| Last Updated | today | 187d ago | 40d ago |
| Age | 1d | 10y 6m | 3y 8m |
Health Breakdown
htmlsanitizer
Maintenance
14
Quality
9
Community
6
Popularity
2
Documentation
10
ammonia
Maintenance
11
Quality
13
Community
20
Popularity
8
Documentation
15
svg-hush
Maintenance
15
Quality
14
Community
11
Popularity
6
Documentation
12
Technical Details
| htmlsanitizer | ammonia | svg-hush | |
|---|---|---|---|
| Version | 0.2.0 | 4.1.2 | 0.9.6 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT OR Apache-2.0 | Apache-2.0 OR MIT |
| Dependencies | 4 | 7 | 5 |
| Crate Size | 62KB | 57KB | 17KB |
| Features | 2 | 0 | 0 |
| Yanked % | 66.7% | 66.7% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | 1.80 | 1.85 |
| Owners | 1 | 2 (team) | 3 |
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.
- •htmlsanitizer, svg-hush are pre-1.0 — API may change.