- see footer for list info -<
Hi all,

I'm wanting to use HTML Tidy to clean up code from form submissions containing heaps of MS based crud.

So I have Tidy installed on our server and then i'm

1. Writing an htm file in the Tidy dir
2. executing Tidy
3. Reading the file back into the form variable

Now I don't know how to get tidy to process the html file through CF, after a lot of googling I've not found how to do this.

Here's my code:

<cflock timeout="30" name="htmlTidy">
   <!--- create an html file from the form vars --->
<cffile action="WRITE" file="#request.htmlTidy#temp.htm" output="#form.nws_body#"> <!--- call the HTML tidy object and pass the html file to it --->
   <cfexecute name="#request.htmlTidy#tidy.exe">
<!--- read the fixed html file and pass back into the form var ---> <cffile action="read" file="#request.htmlTidy#temp.htm" variable="form.nws_body">

</cflock>

Can anyone help me with the what and how of getting Tidy to run on the htm file?

Cheers,
Damian

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to