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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![doc = include_str!("../README.md")]

mod errors;
mod filter;
mod parse;
mod types;

pub use crate::filter::types::Filter;
pub use crate::types::html::Html;
pub use crate::types::tag::{Attribute, Tag};

/// A const equivalent of the [`Option::unwrap_or`] method.
const fn unwrap_or(opt: Option<bool>, default: bool) -> bool {
    match opt {
        Some(val) => val,
        None => default,
    }
}