Re: HTML Tidy Question

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 UTC