Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q3016 How can I put a # (pound sign) in my ColdFusion output?

irt.org | Knowledge Base | ColdFusion | Q3016 [ previous next ]

Q3016 How can I put a # (pound sign) in my ColdFusion output?

You can "escape" the pound sign by doubling it. For example:

<cfoutput><font color="##FFFFFF">#myVariable#</font></cfoutput>

Alternately, consider moving the CFOUTPUT tags closer to the variable, like this:

<font color="#FFFFFF"><cfoutput>#myVariable#</cfoutput></font>

Feedback on 'Q3016 How can I put a # (pound sign) in my ColdFusion output?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.