use HTML::TreeBuilder 5 -weak;
my $tree = HTML::TreeBuilder->new;
# HTML given is read from a file in UTF-8 format. Using parse_file returns garbled characters.
my $html = shift;
# The next 2 lines are added to see whether it would impact losing
tags
$tree->no_space_compacting(1);
$tree->ignore_unknown(0);
$tree->parse( $html );
$tree->eof();
...
...
$Definition = $DefinitionNode->as_HTML('<>&');
####
adv.
1 maldosamente
2 maliciosamente
3 intencionalmente
####
adv.1 maldosamente2 maliciosamente3 intencionalmente