Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


clean_up_html_markup_with_tidy_and_perl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
clean_up_html_markup_with_tidy_and_perl [2008/12/05 21:39] – created juckinsclean_up_html_markup_with_tidy_and_perl [2025/03/20 20:11] (current) juckins
Line 1: Line 1:
 +==== HTML Tidy ====
 +
 Download and install Tidy. Download and install Tidy.
  
Line 14: Line 16:
 Make sure to make a backup copy of the file first. Make sure to make a backup copy of the file first.
  
 +Now remove blank lines from the resulting cleaned-up code using perl:
 +<code>
 +perl -pi -e "s/^\n//" <filename>
 +</code>
clean_up_html_markup_with_tidy_and_perl.1228531192.txt.gz · Last modified: by juckins