Answered
Escaping bgcolor="#B03F15" in a CFOUTPUT
Hi everyone,
I have some code that works great until I add some color to a table I am outputting. I think it is because the color has a "#" in it, which CF interperets as a variable. How can I escape that "#" and so the color shows and I don't get an error? Thanks!
<cfoutput query="getNotes">
<table width="100%" border="1">
<tr>
<th width="90" scope="col"> <div align="center" >#DateFormat(getNotes.date)#</div></th>
<th width="860" scope="col" bgcolor="#B03F15"><div align="left">#getNotes.description#</div></th>
</tr>
</table>
</cfoutput>
I have some code that works great until I add some color to a table I am outputting. I think it is because the color has a "#" in it, which CF interperets as a variable. How can I escape that "#" and so the color shows and I don't get an error? Thanks!
<cfoutput query="getNotes">
<table width="100%" border="1">
<tr>
<th width="90" scope="col"> <div align="center" >#DateFormat(getNotes.date)#</div></th>
<th width="860" scope="col" bgcolor="#B03F15"><div align="left">#getNotes.description#</div></th>
</tr>
</table>
</cfoutput>
