Problems? Is your data what you think it is? | |
PerlMonks |
Re: How to parse HTML5?by Corion (Patriarch) |
on Mar 08, 2016 at 11:59 UTC ( [id://1157067]=note: print w/replies, xml ) | Need Help?? |
Maybe <section> tags are not supposed to be nested and that's why HTML::Tidy is complaining about them? Why do you want to parse HTML? Personally, I like HTML::TreeBuilder, which gives me a tree I can later query for content. If you want to clean up HTML, maybe you can use the ->as_HTML method of the resulting HTML::Element to pretty-print it.
In Section
Seekers of Perl Wisdom
|
|