Release 1.1.0#125
Merged
danielparks merged 3 commits intomainfrom Apr 13, 2026
Merged
Conversation
* Major performance improvements when unescaping text in many cases (for both the `unescape` and `unescape_fast` features). * Major improvements in build time for the `unescape_fast` features (went from 8 seconds to 3 seconds on my laptop). * Add `BARE_ENTITY_MAX_LENGTH` constant that contains the length of the longest entity without a semicolon (enabled with feature `entities`). * Clarify examples in documentation and README. * Fix a few spelling mistakes in documentation. ### Security * [RUSTSEC-2026-0097]: the [rand] crate was unsound in certain circumstances. Htmlize depends on [rand] via [phf] and couldn’t trigger the unsoundness on its own. Thanks to [MarkusPettersson98] for the [PR][#124]! [RUSTSEC-2026-0097]: https://rustsec.org/advisories/RUSTSEC-2026-0097 [rand]: https://crates.io/crates/rand [phf]: https://crates.io/crates/phf [MarkusPettersson98]: https://github.com/MarkusPettersson98 [#124]: #124
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CHANGELOG.md: add security note about recent PR.
Make
REPLACEMENT_CHAR_BYTESpublic again.Release 1.1.0
the
unescapeandunescape_fastfeatures).unescape_fastfeatures (went from8 seconds to 3 seconds on my laptop).
BARE_ENTITY_MAX_LENGTHconstant that contains the length of the longestentity without a semicolon (enabled with feature
entities).Security
Htmlize depends on rand via phf and couldn’t trigger the unsoundness on
its own. Thanks to MarkusPettersson98 for the PR!