Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

All notable changes to this project will be documented in this file.

## main branch
## Release 1.1.0 (2026-04-13)

* Major performance improvements when unescaping text in many cases (for both
the `unescape` and `unescape_fast` features).
Expand All @@ -13,6 +13,18 @@ All notable changes to this project will be documented in this file.
* 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]: https://github.com/danielparks/htmlize/pull/124

## Release 1.0.6 (2025-04-26)

* Switch dependency from [paste], which is no longer maintained, to a new fork,
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "htmlize"
version = "1.0.6"
version = "1.1.0"
authors = ["Daniel Parks <oss-htmlize@demonhorse.org>"]
description = "Correctly encode and decode HTML entities in UTF-8"
homepage = "https://github.com/danielparks/htmlize"
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,20 +217,20 @@ additional terms or conditions.

[docs.rs]: https://docs.rs/htmlize/latest/htmlize/
[crates.io]: https://crates.io/crates/htmlize
[`escape_text()`]: https://docs.rs/htmlize/1.0.6/htmlize/fn.escape_text.html
[`escape_text_bytes()`]: https://docs.rs/htmlize/1.0.6/htmlize/fn.escape_text_bytes.html
[`escape_attribute()`]: https://docs.rs/htmlize/1.0.6/htmlize/fn.escape_attribute.html
[`escape_attribute_bytes()`]: https://docs.rs/htmlize/1.0.6/htmlize/fn.escape_attribute_bytes.html
[`escape_all_quotes()`]: https://docs.rs/htmlize/1.0.6/htmlize/fn.escape_all_quotes.html
[`escape_all_quotes_bytes()`]: https://docs.rs/htmlize/1.0.6/htmlize/fn.escape_all_quotes_bytes.html
[`unescape()`]: https://docs.rs/htmlize/1.0.6/htmlize/fn.unescape.html
[`unescape_attribute()`]: https://docs.rs/htmlize/1.0.6/htmlize/fn.unescape_attribute.html
[`unescape_in()`]: https://docs.rs/htmlize/1.0.6/htmlize/fn.unescape_in.html
[`unescape_bytes_in()`]: https://docs.rs/htmlize/1.0.6/htmlize/fn.unescape_bytes_in.html
[`escape_text()`]: https://docs.rs/htmlize/1.1.0/htmlize/fn.escape_text.html
[`escape_text_bytes()`]: https://docs.rs/htmlize/1.1.0/htmlize/fn.escape_text_bytes.html
[`escape_attribute()`]: https://docs.rs/htmlize/1.1.0/htmlize/fn.escape_attribute.html
[`escape_attribute_bytes()`]: https://docs.rs/htmlize/1.1.0/htmlize/fn.escape_attribute_bytes.html
[`escape_all_quotes()`]: https://docs.rs/htmlize/1.1.0/htmlize/fn.escape_all_quotes.html
[`escape_all_quotes_bytes()`]: https://docs.rs/htmlize/1.1.0/htmlize/fn.escape_all_quotes_bytes.html
[`unescape()`]: https://docs.rs/htmlize/1.1.0/htmlize/fn.unescape.html
[`unescape_attribute()`]: https://docs.rs/htmlize/1.1.0/htmlize/fn.unescape_attribute.html
[`unescape_in()`]: https://docs.rs/htmlize/1.1.0/htmlize/fn.unescape_in.html
[`unescape_bytes_in()`]: https://docs.rs/htmlize/1.1.0/htmlize/fn.unescape_bytes_in.html
[`Cow`]: https://doc.rust-lang.org/std/borrow/enum.Cow.html
[official WHATWG spec]: https://html.spec.whatwg.org/multipage/parsing.html#character-reference-state
[phf]: https://crates.io/crates/phf
[features]: https://docs.rs/htmlize/1.0.6/htmlize/index.html#features
[features]: https://docs.rs/htmlize/1.1.0/htmlize/index.html#features
[iai]: https://crates.io/crates/iai
[criterion]: https://crates.io/crates/criterion
[`cargo criterion`]: https://crates.io/crates/cargo-criterion
Expand Down
2 changes: 2 additions & 0 deletions src/unescape/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,3 +233,5 @@ pub mod internal;

#[cfg(not(all(feature = "bench", not(doc))))]
mod internal;

pub use internal::REPLACEMENT_CHAR_BYTES;