Crates.io | htmlparser |
lib.rs | htmlparser |
version | 0.2.1 |
source | src |
created_at | 2023-06-27 08:11:07.247009 |
updated_at | 2024-11-03 10:20:44.274239 |
description | Pull-based, zero-allocation HTML parser. |
homepage | https://github.com/jdrouet/htmlparser |
repository | https://github.com/jdrouet/htmlparser.git |
max_upload_size | |
id | 901077 |
size | 129,691 |
htmlparser is a low-level, pull-based, zero-allocation HTML parser.
for token in htmlparser::Tokenizer::from("<tagname name='value'/>") {
println!("{:?}", token);
}
This library is basically a low-level XML tokenizer that preserves the positions of the tokens and is not intended to be used directly.
This library is a copy of xmlparser with some adjustments to parse html.
StrSpan
structs which represent the position of the
substring in the original document.cargo-bloat
.no_std
builds. To use without the standard library, disable the
default features.<root><child></root></child>
or a string without root element will be
parsed without errors. You should check for this manually. On the other
hand <a/><a/>
will lead to an error.<item a="v1" a="v2"/>
will be parsed without errors. You should check for this manually.Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.