How do I get parsed HTML from HTML::Normalize module?
my code as follows
use HTML::Normalize; my $norm = HTML::Normalize->new (); open(IN,"index.html"); $dirty = <IN>; close(IN); my $cleanHtml = $norm->cleanup (-html => $dirtyHtml); open(OUT,">output.html") or die "Cannot open file\n"; print OUT $cleanHtml; close(OUT);
I'm opening a html file and cleaning the html tags and again I need the HTML file after parsing
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |