如何在cfoutput中添加#?

Ste*_*eve 1 html string ajax coldfusion

我必须从ajax查询中呈现以下html标记.问题是cfml将前缀为#的任何字符串视为标识符.所以我收到了一个错误.

 <cfoutput>
                <table style="display:none;" width="100%" border="1" cellpadding="2" cellspacing="0">
                    <tr>
                        <td width="43%" bgcolor="#649DCA"><strong>Class</strong></td>
                        <td width="20%" bgcolor="#649DCA"><strong>Site</strong></td>
                        <td width="47%" bgcolor="#649DCA"><strong>Date/Time</strong></td>
                    </tr>
  </cfoutput>
Run Code Online (Sandbox Code Playgroud)

Joe*_*e C 10

你只需要加倍你的#.

<td width="43%" bgcolor="##649DCA"><strong>Class</strong></td>
Run Code Online (Sandbox Code Playgroud)

就个人而言,我可能只是使用CSS并分别设置表格样式.