NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #4726 most downloaded on crates.io
Correctly encode and decode HTML entities in UTF-8
Latest stable
1.1.0
Last release 7 months ago
13 Apr 2026
Release timing varies
gaps range from 3 weeks to 3.0 years
Nearly every release is documented
notes for 10 of 11 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
11 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Major performance improvements when unescaping text in many cases (for both the unescape and unescape_fast features).
unescape and unescape_fast features).unescape_fast features (went from 8 seconds to 3 seconds on my laptop).BARE_ENTITY_MAX_LENGTH constant that contains the length of the longest entity without a semicolon (enabled with feature entities).Switch dependency from [paste], which is no longer maintained, to a new fork, [pastey], which is.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Exclude more files from final package to significantly reduce package size.
Upgrade indirect dependency [rustix] to fix a [security vulnerability][GHSA-c827-hfw6-qwvm] in directory iterators. This does not affect htmlize, sinc…
Enabled feature marks on [docs.rs] to make it clearer what features are required by what functions.
Fix building with unescape feature but not unescape_fast. Added tests for a few common feature flags — in addition to --all-features — to the CI check
unescape feature but not unescape_fast. Added tests for
a few common feature flags — in addition to --all-features — to the CI check
to avoid this sort of problem in the future.Fix [docs.rs] build to enable the unescape and entities features.
unescape and entities features.Hid unescape() behind unescape feature. This allows users to avoid the dependency on [phf] and the build dependency on [serde_json], which cuts build
unescape() behind unescape feature. This allows users to avoid the
dependency on phf and the build dependency on serde_json, which cuts build
times on my machine by more than 90% (from 6.2 seconds to 0.5 seconds).ENTITIES behind entities features for the same reason I added the
unescape feature. Note that the unescape feature automatically enables
the entities feature, but unescape_faster does not.Cow<'a, str> for input
and output. This allows for significant performance improvements when the
input can be returned unchanged.unescape_faster feature for even faster unescaping at the cost of
longer build times (about 30 seconds longer on my machine).unescape_attribute() to handle the special rules for dealing with
entities in the value of an HTML attribute. Also adds unescape_in(), which
takes a context parameter that can either be Context::Attribute or
Context::General (for everything else).unescape_bytes_in() to work on [u8] rather than str.escape_..._bytes() functions to work on [u8] rather than str.phf_map! macro.
On my machine, this cuts build time by about 25% (~2 seconds).ENTITIES to indicate that it’s a Map, not just
a collection of tuples.unescape() incorrectly outputted the replacement character (U+FFFD “�”) for
certain numeric entities:
0x0D (carriage return)A close reading of the spec and some browser testing shows that behavior to be incorrect. Those characters are now outputted as themselves.
unescape() incorrectly outputted long numeric entities as the literal text
of the entity.
A close reading of the spec and some browser testing shows that behavior to be incorrect. Those long entities are now outputted as the replacement character (U+FFFD “�”).
Switched from [assertify][] (deprecated) to [assert2][] for testing.
Remove private macros from docs, rename function, and expand README.
Remove private macros from docs, rename function, and expand README.
Nothing published for this version
One column per quarter.