diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-19 08:38:57 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-19 08:38:58 +0100 |
commit | 98ad8cec144900c7799772b3a53241825b416b4f (patch) | |
tree | 8a18df3e9ff4c4be5316112c0f02db72f9ef94f2 /README.md | |
parent | 7207abccd9dccb15eb37f43a8f763cac99be14d4 (diff) |
feature gate named-entities (making phf optional)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -21,6 +21,11 @@ If you want to parse HTML into a tree (DOM) you should by all means use html5ever, this crate is merely for those who only want an HTML5 tokenizer and seek to minimize their compile dependencies (html5ever pulls in 56). +To efficiently resolve named entities like `&` the tokenizer uses +[phf](https://crates.io/crates/phf) for a compile-time static map. If you +don't need to resolve named entities, you can avoid the `phf` dependency +by disabling the `named-entities` feature (which is enabled by default). + ## Credits Thanks to the developers of html5ever for their awesome parser! |