Decision Workspace
htmlsanitizer vs ammonia vs svg-hush
Side-by-side comparison of Rust crates
38
htmlsanitizer
experimentalv0.2.0
A fast, allowlist-based HTML sanitizer
74
ammonia
stablev4.2.1
HTML Sanitization
57
svg-hush
growingv0.9.7
Strip scripting and other abusable features from SVG files
Core Metrics
| htmlsanitizer | ammonia | svg-hush | |
|---|---|---|---|
| Health Score | 38 | 74 | 57 |
| Total Downloads | 94 | 18.1M | 513.9K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 2.1K | 3 |
| Releases | 3 | 48 | 8 |
| Last Updated | 197d ago | 7d ago | 64d ago |
| Age | 6m | 11y 1m | 4y 2m |
Health Breakdown
htmlsanitizer
Maintenance
11
Quality
9
Community
6
Popularity
2
Documentation
10
ammonia
Maintenance
18
Quality
13
Community
20
Popularity
8
Documentation
15
svg-hush
Maintenance
13
Quality
14
Community
11
Popularity
7
Documentation
12
Technical Details
| htmlsanitizer | ammonia | svg-hush | |
|---|---|---|---|
| Version | 0.2.0 | 4.2.1 | 0.9.7 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT OR Apache-2.0 | Apache-2.0 OR MIT |
| Dependencies | 4 | 6 | 5 |
| Crate Size | 62KB | 65KB | 17KB |
| Features | 2 | 0 | 0 |
| Yanked % | 66.7% | 54.2% | 0.0% |
| Edition | 2021 | 2021 | 2024 |
| MSRV | — | 1.85 | 1.85 |
| Owners | 1 | 2 (team) | 3 |
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.
- •htmlsanitizer, svg-hush are pre-1.0 — API may change.