• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

Specifying quotation as literal in Coldfusion

Hi,

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

i.e:

<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 =)
0
paddycobbett
Asked:
paddycobbett
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
what about this:

<cfset prefix = "<cfset id = ""-1"" >">
0
 
paddycobbettAuthor Commented:
thanks =)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now