Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use "quotes" in a string without the CF tag parsing it

Status
Not open for further replies.

Streetdaddy

Programmer
Jun 10, 1999
161
AU
I would normally use the \ character in a string so to escape out the " character when building a string (this is what I do in perl and C). Cold Fusion doesnt seem to use the same syntax, and i don't know what character to use?
 
Use double "".

For example:
<CFSET foo = &quot;escape &quot;&quot; quotes&quot;>
<CFOUTPUT> foo: #foo#</CFOUTPUT>
should display foo: escape &quot; quotes
 
Thanks :) Thats what I wanted to know!


how about using < in a string

&quot;<<&quot; & #URL.Email# & &quot;>>&quot; gives me :

<>

but not the email?
 
Try &quot;< #URL.Email# >&quot; ...I know it doesn't look right, but
it works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top