Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


clean_up_html_markup_with_tidy_and_perl

This is an old revision of the document!


Download and install Tidy.

For help, do:

tidy -help

To clean up HTML by creating indented code, wrapping text at column #500, converting HTML to XHTML, and modify the existing file in place, do the following:

tidy -i -w 500 -asxml -m <filename>

Make sure to make a backup copy of the file first.

clean_up_html_markup_with_tidy_and_perl.1228531192.txt.gz · Last modified: 2008/12/05 21:39 by juckins