NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev, #417 most downloaded on pub.dev
Function for sanitizing HTML to prevent XSS by restrict elements and attributes to a safe subset of allowed values.
Latest stable
2.2.0
Last release 4 months ago
07 Jul 2026
Release timing varies
gaps range from 5 weeks to 2.8 years
Nearly every release is documented
notes for 9 of 9 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
9 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Allow the <picture> and <source> elements, with srcset on <source> , matching the html-pipeline allowlist this package is modeled on. Enables theme-aw
<picture> and <source> elements, with srcset on <source>, matching the html-pipeline allowlist this package is modeled on. Enables theme-aware images via <picture> with prefers-color-scheme.<picture> and <source> elements, with srcset on <source>, matching the html-pipeline allowlist this package is modeled on. Enables theme-aware images via <picture> with prefers-color-scheme.Remove custom HTML rendering logic in favor of logic from package:html.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
package:html.topics to pubspec.yaml.rel attributes added through addLinkRel are appended to existing ones.* Migrate to null safety.
Make addLinkRel optional. Issue.
addLinkRel optional. Issue.Added addLinkRel option to sanitize_html. This will allow users to qualify outbound links which may help prevent comment spam.
addLinkRel option to sanitize_html. This will allow users to
qualify outbound links
which may help prevent comment spam.Only print self-closing tags for void-elements. This could cause in HTML documents, which is can be interpreted as an opening tag by HTML5 parsers, ca
<strong /> in HTML documents, which is can be interpreted
as an opening tag by HTML5 parsers, causing the HTML structure to break.Does not depend on universal_html, uses custom HTML rendering for the output.
universal_html, uses custom HTML rendering for the output.Add options allowElementId and allowClassName to allow specific element ids and class names.
allowElementId and allowClassName to allow specific element
ids and class names.* Initial release.
One column per quarter.