use EscapeHTML qw();
use HTML::Tidy;
use Data::Dumper;
+use Encode;
use constant ANCHOR => -4;
use constant NOTAGS => -3;
'show-body-only' => 1,
} );
my $tidyed = $tidy->clean($html);
+ chomp($tidyed);
return $tidyed;
}
'show-body-only' => 1,
} );
my $tidyed = $tidy->clean($escaped);
- chomp($tidyed);
return $tidyed;
}