No such thing as a small change | |
PerlMonks |
Re: Fixing Bad HTMLby Chmrr (Vicar) |
on Nov 17, 2002 at 03:07 UTC ( [id://213501]=note: print w/replies, xml ) | Need Help?? |
HTML::TreeBuilder does a good job of finding and closing such problems when it parses, as well as adding some implicit tags that get forgotten. The following line-liner should be enough to get you started:
perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'
In Section
Seekers of Perl Wisdom
|
|