NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #49 most downloaded on pub.dev
APIs for parsing and manipulating HTML content outside the browser.
Last release 1 months ago
28 Aug 2026
Release timing varies
gaps range from 9 days to 1.7 years
Most releases are documented
notes for 24 of 31 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
33 releases · first in 2015
Fix XSS vulnerability in htmlToCodeMarkup() by escaping DOCTYPE, element, and attribute names.
writeTextNodeAsHtml: Escape text inside <script> and <style>-like tags in foreign namespaces.3.6textContent method to Node class that returns the text content ofhtmlToCodeMarkup() by escaping DOCTYPE, element, and attribute names.No longer generate any error spans if generateSpans is false.
nth-child(even))One column per quarter.
Support "ambiguous ampersand" in attribute values.
Move to dart-lang/tools monorepo.
3.2.dart-lang/tools monorepo.Widen the dependency on package:csslib.
package:csslib.2.19.Added package topics to the pubspec file.
Add additional types at the API boundary (in lib/parser.dart and others).
lib/parser.dart and others).package:dart_flutter_team_lints linting rules.querySelector where it would fail in some cases with
descendant or sibling combinators (#157).example/.Move htmlSerializeEscape to its own library, package:html/html_escape.dart, which is exported from package:html/dom_parsing.dart.
htmlSerializeEscape to its own library,
package:html/html_escape.dart, which is exported from
package:html/dom_parsing.dart.implicit-casts: false to strict-casts: true.Drop lastPhase, beforeRcDataPhase, and container fields from HtmlParser class. These fields never had a value other than null.
lastPhase, beforeRcDataPhase, and container fields from
HtmlParser class. These fields never had a value other than null.Nothing published for this version
Drop support for encodings other than UTF-8 and ASCII.
BREAKING CHANGES
parser_console.dart library.Support package:css >=0.13.2 <0.16.0.
package:css >=0.13.2 <0.16.0.Support package:css >=0.13.2 <0.17.0.
package:css >=0.13.2 <0.17.0.Fix spans generated for HTML with higher-plane unicode characters (eg. emojis).
Fix a bug parsing bad HTML where a 'button' end tag needs to close other elements.
* Fixes to readme and pubspec.
Nothing published for this version
Update the signatures of FilteredElementList.indexOf and FilteredElementList.lastIndexOf to include type annotations.
FilteredElementList.indexOf and
FilteredElementList.lastIndexOf to include type annotations.Updated SDK version to 2.0.0-dev.17.0
Set max SDK version to <3.0.0, and adjust other dependencies.
<3.0.0, and adjust other dependencies.Do not use this tag in our systems - there was an earlier version of it pointing to a different commit, that is still in some caches.
Do not use this tag in our systems - there was an earlier version of it pointing to a different commit, that is still in some caches.
Fix missing_return analyzer errors in processStartTag and processEndTag
methods.
Nothing published for this version
Support the latest release of pkg/csslib.
pkg/csslib.Changed the implementation of Set and List classes to use base classes from dart:collection.
Set and List classes to use base classes
from dart:collection.Update signature for implementations of Iterable.singleWhere to include optional argument.
Iterable.singleWhere to include
optional argument.Update Set.difference to take a Set .
add Text.data, deprecate Node.value and Text.value.
csslib versions 0.13.x..packages file from the published package.Element.endSourceSpan, containing the span of a closing tag.csslib version 0.12.0.htmlsource_maps' Span class to source_span's
SourceSpan class.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →