Closed agreif closed 4 years ago
is there a way to extract all attributes with their values of tags? example"
<img src="foo.gif" title="My Foo"> <img src="bar.gif" title="My Bar">
I would like to get a list of tuples [("foo.gif","My Foo"), ("bar.gif","My Bar")]
I am able to find all img tags with a src attribute, but I see no way to get the title to the corresponding img tag.
found the solution in 'https://github.com/fimad/scalpel/blob/master/examples/generalized-repetition/Main.hs'
is there a way to extract all attributes with their values of tags? example"
I would like to get a list of tuples [("foo.gif","My Foo"), ("bar.gif","My Bar")]
I am able to find all img tags with a src attribute, but I see no way to get the title to the corresponding img tag.