Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    use HTML::Tidy;
    ...
    my $tidy = HTML::Tidy->new();
    my $clean = $tidy->clean($html);
    print "Clean HTML:\n---------------------------\n$clean\n";