html_parser 0.7.0

A simple and general purpose html/xhtml parser
Documentation
1
2
3
4
5
6
7
8
9
10
use html_parser::{Dom, Result};
use insta::assert_json_snapshot;

#[test]
fn it_can_parse_empty_document() -> Result<()> {
    let html = "";
    let dom = Dom::parse(html)?;
    assert_json_snapshot!(dom);
    Ok(())
}