Use the function HTMLEditFormat.  This function will automatically replace
all the "dangerous" characters for you.

-----Original Message-----
From: Ray Bujarski [mailto:[EMAIL PROTECTED]]
Sent: October 26, 2001 1:25 PM
To: CF-Talk
Subject: Escaping Quotes


I am outputting a string into a form field where the contents contains a
set of quotes.  But escaping them doesn't work can someone help with this?

The Code
<cfoutput query="getCurrReports">
        <input class="boxes" type="text" value="#replace(Job_Name, chr(34),
chr(92) & chr(34), "all")#" name="JobName#ii#">
</cfoutput>


when I view the sorce code I see
GSM \"KOVU\"

I have also tried
GSM &quote;KOVU&quote;

but the input box will only read
GSM \       for the first example
and
GSM           for the last example

How can I escape these characters?
Thanks,
Ray

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to