use parsercher; fn main() { let html = r#" sample html
"#; let root_dom = parsercher::parse(&html).unwrap(); let needle = r#" "#; let needle_dom = parsercher::parse(&needle).unwrap(); // Remove `root`dom of needle_dom let needle_dom = needle_dom.get_children().unwrap().get(0).unwrap(); if let Some(dom) = parsercher::search_dom(&root_dom, &needle_dom) { parsercher::print_dom_tree(&dom); } }