my $doc = $parser->parse_fh(\*DATA); # If you have well balanced snippet like below
Is there any reason to not use parse_html_fh to parse HTML? All of the following are well balanced (or impossible to balance) but invalid XML:
<option selected ...>...</option> <font color=red>...</font> <br> <img ...> <meta ...> (without XML bits to define it)
Encoding is also handled differently.
In reply to Re^2: module for HTML XML conversion
by ikegami
in thread module for HTML XML conversion
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |