Perl Monk, Perl Meditation | |
PerlMonks |
Re: Dynamically cleaning up HTML fragmentsby dHarry (Abbot) |
on Sep 24, 2010 at 11:30 UTC ( [id://861785]=note: print w/replies, xml ) | Need Help?? |
Although I am biased towards XML solutions, in this particular case I would choose a different approach. Most if not all (compliant) parsers need an XML document at least to be wellformed in order to parse them correctly. (As you have discovered yourself with your SAX example.) As you XML is not well formed the "XML approach" doesn't make a lot of sense to me. I like some of the other suggestions like html tidy.
In Section
Seekers of Perl Wisdom
|
|