sanitize_html
Published by 🇺🇸google.dev · v2.2.0 · released 3 months ago · APACHE-2.0 License
First published 7 years ago.
Function for sanitizing HTML to prevent XSS by restrict elements and attributes to a safe subset of allowed values.
Part of google/dart-neats (11 packages)
#75 in Utilities #325 overall androidioswindowslinuxmacosweb
Downloads / day
35,364
as of 2026-10-19
GitHub stars
508
★ refreshed weekly
Likes
53
on pub.dev
Pub points
160 / 160
perfect score
2026-09-19 2026-10-19
Repository health
Shared with 10 sibling packages in this repo.
- Last commit
- 1 month ago
- Commit activity
- Open issues
- 26
- Open PRs
- 29
- Contributors
- 29 (top contributor 79%)
- CI
- GitHub Actions
- License (repo)
Sibling packages: retry, http_methods, safe_url_check, pem, chunked_stream, canonical_json, typed_sql, slugid, neat_cache, neat_periodic_task
Last refreshed 22 days ago.
How sanitize_html compares in Utilities
Top of the Utilities leaderboard, with sanitize_html highlighted.
| Rank | Package | Downloads / day | Stars | Likes |
|---|---|---|---|---|
| #1 | 🇺🇸 tools.dart.dev | 598.2K | ★ 116 | 295 |
| #2 | 🇺🇸 dart.dev | 595.8K | ★ 11.3K | 479 |
| #3 | 🇺🇸 loki3d.com | 586.2K | ★ 468 | 903 |
| #4 | 🇺🇸 tools.dart.dev | 580.3K | ★ 116 | 172 |
| #75 | google.dev | 35.4K | ★ 508 | 53 |
