in reply to Re: module for HTML XML conversion
in thread module for HTML XML conversion
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: module for HTML XML conversion
by Your Mother (Archbishop) on Mar 28, 2010 at 05:30 UTC |