Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: how to get HTML file after parsing with HTML::Normalize
by GrandFather (Saint) on Mar 13, 2008 at 09:58 UTC | |
Re: how to get HTML file after parsing with HTML::Normalize
by haoess (Curate) on Mar 13, 2008 at 10:06 UTC | |
by Anonymous Monk on Mar 14, 2008 at 07:07 UTC |