Function attr_iter

Source
pub fn attr_iter(html: &str) -> HTMLTagAttributeIterator<'_> 
Expand description

Return a HTMLTagAttribute Iterator

Examples found in repository?
examples/test.rs (line 8)
4fn main() {
5    let html = "this is a test: <a href=\"http://rust-lang.org\">The Rust Programing Language</a>";
6    for (pos, tag) in tag_iter(html) {
7        println!("{:?} {:?}", pos, tag);
8        for (pos, attr) in attr_iter(&tag.attributes) {
9            println!("    {:?} {:?}", pos, attr);
10        }
11    }
12}