print XML::LibXML->new->parse_html_string(join "", <>)->toStringHTML;
my $parser = XML::LibXML->new();
$parser->recover(1); # Set recovery on error flag
$parser->parse_html_string(join "", <>)->toStringHTML;
Don't know if it's accurate but the docs say that won't work-
This switch (recover) will only work with XML data rather than HTML data.
(Update, July 2010: this does work and has for at least a few years -- don't know if it was always the case; I should have tested back when I initially responded.)
Results (274 votes),