use nipper::Document; fn main() { let html = r#"
"#; let document = Document::from(html); println!("{}", document.html()); let mut input = document.select(r#"div[name="foo"]"#); println!("{}", input.html()); input.set_attr("id", "input"); input.remove_attr("name"); println!("{}", input.attr("value").unwrap()); println!("{}", input.html()); input.replace_with_html(r#"wisburg

xxx

"#); println!("{}", input.html()); println!("{}", document.html()); }