Turn messy HTML into standards-compliant HTML with all close tags properly noted. Takes STDIN, or a list of files, and result goes on STDOUT.
#!/usr/bin/perl use XML::LibXML; print XML::LibXML->new->parse_html_string(join "", <>)->toStringHTML;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: HTML tidy, using XML::LibXML
by Matts (Deacon) on Jan 04, 2003 at 17:10 UTC | |
by Your Mother (Archbishop) on Sep 01, 2007 at 05:43 UTC |
Back to
Cool Uses for Perl