Decision Workspace
css-sanitizer vs svg-hush vs htmlsanitizer
Side-by-side comparison of Rust crates
51
css-sanitizer
experimentalv0.1.4
Policy-driven CSS sanitization on top of lightningcss
55
svg-hush
growingv0.9.6
Strip scripting and other abusable features from SVG files
37
htmlsanitizer
experimentalv0.2.0
A fast, allowlist-based HTML sanitizer
Core Metrics
| css-sanitizer | svg-hush | htmlsanitizer | |
|---|---|---|---|
| Health Score | 51 | 55 | 37 |
| Total Downloads | 741 | 180.2K | 45 |
| 30d Downloads | 0 | 21.4K | 0 |
| Dependents | 0 | 3 | 0 |
| Releases | 4 | 7 | 3 |
| Last Updated | 56d ago | 99d ago | 60d ago |
| Age | 1m | 3y 10m | 2m |
Health Breakdown
css-sanitizer
Maintenance
16
Quality
14
Community
6
Popularity
3
Documentation
12
svg-hush
Maintenance
12
Quality
14
Community
11
Popularity
6
Documentation
12
htmlsanitizer
Maintenance
10
Quality
9
Community
6
Popularity
2
Documentation
10
Technical Details
| css-sanitizer | svg-hush | htmlsanitizer | |
|---|---|---|---|
| Version | 0.1.4 | 0.9.6 | 0.2.0 |
| Stable (≥1.0) | ✗ No | ✗ No | ✗ No |
| License | Apache-2.0 | Apache-2.0 OR MIT | MIT |
| Dependencies | 2 | 5 | 4 |
| Crate Size | 31KB | 17KB | 62KB |
| Features | 0 | 0 | 2 |
| Yanked % | 0.0% | 0.0% | 66.7% |
| Edition | 2024 | 2024 | 2021 |
| MSRV | 1.93.0 | 1.85 | — |
| Owners | 1 | 3 | 1 |
Links
Quick Verdict
- •svg-hush leads with a health score of 55/100, but none of the options score above 80.