in reply to How to parse HTML5?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to parse HTML5?
by NRan (Novice) on Mar 08, 2016 at 12:13 UTC | |
by Corion (Patriarch) on Mar 08, 2016 at 12:17 UTC | |
by NRan (Novice) on Mar 08, 2016 at 12:20 UTC | |
by poj (Abbot) on Mar 08, 2016 at 13:28 UTC | |
by NRan (Novice) on Mar 10, 2016 at 11:44 UTC |