Sponsored by- The #1 Flutter-powered AI app builder
Home/Top/Utilities/sanitize_html

sanitize_html

Published by 🇺🇸google.dev · v2.2.0 · released 1 month 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) #73 in Utilities #310 overall androidioswindowslinuxmacosweb
Downloads / day
28,814
as of 2026-08-23
GitHub stars
508
★ refreshed weekly
Likes
52
on pub.dev
Pub points
160 / 160
perfect score
2026-07-24 2026-08-23

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)

Last refreshed 14 days ago.

How sanitize_html compares in Utilities

Top of the Utilities leaderboard, with sanitize_html highlighted.

Rank Package Downloads / day Stars Likes