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

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)

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