Open cook-f opened 2 years ago
I'm also interested in this. I tried to strip comments of an html file, and I don't know how to turn the internal representation back to a String. Here is what I tried:
let _doc = Document::from_read(html.as_bytes())?;
let _find_nodes = _doc.find(Not(Comment));
let _iter_nodes = _find_nodes.into_selection().into_iter();
Haven't found a convenient way to do this yet I'm afraid, would be much appreciated