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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Escaping the Pound sign

Status
Not open for further replies.

TechDude

Programmer
Jul 20, 2000
62
US
I need to display the pound sign in a cfml document within a <cfoutput> tag, how do I escape the character so that cold fusion ignores it?

much thanks,

Chris Sorel
chris@exnihilo.com
Remember, If you continue to do what you have always done,

you will continue to get what you have always gotten.
 
Do it twice...


##

Example:

Code:
<CFSET housenumber = &quot;8&quot;>
<CFOUTPUT>
<P>House ## #HouseNumber#
</CFOUTPUT>
It will output as:

House # 8

Hope that helps,

-Dr
 
great, that works.

much thanks

Chris Sorel
chris@exnihilo.com
Remember, If you continue to do what you have always done,

you will continue to get what you have always gotten.
 
You can escaping the pound (#) sign by doubling it.

For Eg.

<cfoutput><font color=&quot;##fffff&quot;>#form.name#</font></cfoutput>

Bye
John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top