How about :

<cfset Var = "<cfset value = """">">

Note that "" is escape for ". I done some dynamic CF before, with whole
pages assembled on the fly.

-----Original Message-----
From: Carlos A [mailto:[EMAIL PROTECTED]
Sent: Friday, June 02, 2006 9:31 AM
To: CF-Talk
Subject: Re: Disappearing Single-Quote


Have you tried reversing the quotes. For example:

<cfset Var = '<cfset value = "">'>

I haven't tested it but I assume it should work.


> Hi all,
>
> How do I keep CF from interpreting two single-quotes as escaped?  I'm
> storing code snippets into a database and all occurences of "''" are
> becoming "'" (e.g., "<cfset value = ''>" becomes "<cfset value = '>").
>
>
> For example:
>
> <cfset Var = "<cfset value = ''>">
>
> <cfquery name="Store_Var" datasource="Test">

> UPDATE Table

> SET Field = '#Var#'
> </cfquery>
>
> When queried, the value of Field in Table is "<cfset value = '>"
>
> Any advice is appreciated.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242032
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to