sanitize_html
Published by 🇺🇸google.dev · v2.1.0 · released 2 years 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)
#68 in Utilities #301 overall no release in 2 years androidioswindowslinuxmacosweb
Downloads / day
25,694
as of 2026-06-25
GitHub stars
507
★ refreshed weekly
Likes
51
on pub.dev
Pub points
160 / 160
perfect score
2026-05-26 2026-06-25
Repository health
Shared with 10 sibling packages in this repo.
- Last commit
- 1 month ago
- Commit activity
- Open issues
- 23
- Open PRs
- 16
- Contributors
- 28 (top contributor 79%)
- CI
- GitHub Actions
- License (repo)
Sibling packages: retry, http_methods, safe_url_check, pem, chunked_stream, canonical_json, neat_cache, slugid, neat_periodic_task, typed_sql
Last refreshed 1 month ago.
How sanitize_html compares in Utilities
Top of the Utilities leaderboard, with sanitize_html highlighted.
| Rank | Package | Downloads / day | Stars | Likes |
|---|---|---|---|---|
| #1 | 🇺🇸 google.dev | 338.9K | ★ 885 | 778 |
| #2 | 🇺🇸 loki3d.com | 323.4K | ★ 462 | 893 |
| #3 | 🇺🇸 dart.dev | 323.3K | ★ 68 | 633 |
| #4 | 🇺🇸 dart.dev | 321.4K | ★ 11.1K | 475 |
| #68 | google.dev | 25.7K | ★ 507 | 51 |
