Your code is doing this:

<cfset newtext = replace(origtext, "&quot;", "&acute;", "ALL")>

so it looks for the string "&quot;". Not as you seem to want, the double
quote.

Try:

<cfset newtext = replace(origtext, '"', "&quot;", "ALL")>

Ade

-----Original Message-----
From: jgeorges [mailto:[EMAIL PROTECTED]
Sent: 12 May 2005 17:29
To: CF-Talk
Subject: What's wrong with this code?


......

<cfset squote = "&acute;">

<cfset dquote = "&quot;">

<cfset newtext = #replace(origtext, dquote, squote, "ALL")#>

......



origtext contains double quotes (") which the REPLACE function does not
convert.



TIA,

Sam
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.8 - Release Date: 10/05/2005


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206544
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to