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:

______________
@ECHO OFF
cd "%1"
ECHO Processing HTML files with Tidy...
ECHO.
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,

Eric
http://www.rainbowseeker.us
http://www.realestate-columbia-mo.com
  ----- Original Message ----- 
  From: Brian Esser 
  To: html-tidy@w3.org 
  Sent: Thursday, March 20, 2008 6:26 PM
  Subject: HTML Tidy Question


  Hi,

  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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:58 GMT