pub fn parse(input: &str) -> Result<Document, HtmlError>Expand description
Parse an HTML string into a Document.
Runs the tokenizer and tree builder in sequence.
§Errors
Returns HtmlError::InputTooLarge if the input exceeds 256 MiB.
§Example
use fhp_tree::parse;
let doc = parse("<div><p>Hello & world</p></div>").unwrap();
let root = doc.root();
assert!(root.children().count() > 0);