>- see footer for list info -<
p.s. tidy.jar needs to go in your cfmx  {installPath}WEB_INF/lib/
dir, and then the server needs a restart to pick it up.

On Wed, Feb 25, 2009 at 11:58 AM, Rich Wild <[email protected]> wrote:

> You need the java port of HTML Tidy (JTidy) and an applicable CFC for a
> nicer solution:
>
> http://sourceforge.net/projects/jtidy (JTidy Jar file)
>
> http://www.koders.com/coldfusion/fid592E9E77FAE5A6BD59A69EDE020528E2F2BEC2B9.aspx(JTidy
>  CFC)
>
> alternative approach (but similar)
> http://www.jeffcoughlin.com/?pg=9&fn=3&id=1
>
>
> On Wed, Feb 25, 2009 at 11:53 AM, Damian Watson <
> [email protected]> wrote:
>
>> - 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
>>> -<
>>>
>>
>
_______________________________________________

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