W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2008

Re: HTML Tidy Question

From: Eric Frost <eric.frost@mp2kmag.com>
Date: Sun, 23 Mar 2008 07:24:31 -0500
Message-ID: <009101c88ce0$d8e04b00$030110ac@Ericdell>
To: "Brian Esser" <esserfirst@gmail.com>, <html-tidy@w3.org>
Hello Brian,

Yes, but you will need shell access.. assuming it is running Linux, you should write a shell script to traverse the directories and make the changes. Here's a Windows batch file to do the same thing:

cd "%1"
ECHO Processing HTML files with Tidy...
for /f "tokens=*" %%a in ('dir /b /s *.htm*') do tidy -i -c -q -m -c -b --quote-marks yes --drop-empty-paras yes "%%a" | ECHO File: %%a
( from http://discuss.fogcreek.com/CityDesk/default.asp?cmd=show&ixPost=13187&ixReplies=1 )

If you don't have shell access, the ISP will sometimes run it for you if you tell them exactly what you want them to do.. sometimes for a fee.

hope this helps,

  ----- Original Message ----- 
  From: Brian Esser 
  To: html-tidy@w3.org 
  Sent: Thursday, March 20, 2008 6:26 PM
  Subject: HTML Tidy Question


  I have several hundred pages already on my server that need HTML Tidy.   Is there a way I can deploy HTML tidy from my hosts server or my local maching to clean up several hundred or thousand pages in one shot?  That would be amazing and awesome! 

  Any help is greatly appreciated.  This process one at time will take forever with 10,000 + pages.

  Thanks so much!

  Brian Esser
Received on Sunday, 23 March 2008 12:25:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:57 UTC