html-filter 0.2.3

Parse HTML into a typed tree, then search for tags, attributes, classes, filter out comments or find and extract the exact data you want with a short builder pattern - zero dependencies, zero overhead
Documentation
use std::fs::read_to_string;

use html_filter::*;

use super::test_maker;

#[test]
fn parse() {
    let content = read_to_string("tests/data/index.html").expect("Missing tests/data/index.html");
    let tree = Html::parse(&content).unwrap_or_else(|err| panic!("{err}"));
    test_maker("parse", &content, &tree, "", true);
}

#[test]
fn no_filter() {
    let content = read_to_string("tests/data/index.html").expect("Missing tests/data/index.html");
    let tree = Html::parse(&content).unwrap_or_else(|err| panic!("{err}")).filter(&Filter::new());
    test_maker("no_filter", &content, &tree, "", true);
}