Specifying quotation as literal in Coldfusion

Posted on 2007-10-17
Medium Priority
Last Modified: 2013-12-24

how do i specify the literal " (quotation marks) in coldfusion within a variable?

Essentially i want to assign the value: <cfset id="-1"> to a variable


<cfset prefix = "<cfset id = "-1" >">

Obviously the above is illegal, so how do i do this legally? It may seem bizarre what i'm doing but i'm essentially storing coldfusion code in a variable to then write it to file.

Many thanks =)
Question by:paddycobbett
LVL 143

Accepted Solution

Guy Hengel [angelIII / a3] earned 2000 total points
ID: 20092029
what about this:

<cfset prefix = "<cfset id = ""-1"" >">

Author Comment

ID: 20092040
thanks =)

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question