http://www.perlmonks.org?node_id=861764


in reply to Re: Dynamically cleaning up HTML fragments
in thread Dynamically cleaning up HTML fragments

Yes I looked at that node as you can see from my original post. I tried your example which worked as far as it went. However I could not see what the HTML driver actually contributed, and since it depends on HTML::TreeBuilder all the advantages of using a SAX parser are undermined. My example (which also worked upto a point) did not have a dependency. My example only broke down when I tried to address the closing "img" issue. If you know how to fix that I would really appreciate it.