我有一个名为 htmlcode 的 var:
<table width="600" align="center" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3"><img width="600" height="60" alt="" src="nieuwsbrief_banner.gif</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</tbody>
</table>
我想删除所有出现的 . 我可以替换字符串中的其他字符,但似乎无法替换 为空字符串(“”)。我这样做了:
<cfset htmlcode = Replace(htmlcode, " ", "", "all")>
我也尝试替换nbsp;(开头没有 & )。结果全都 变成了&。然后我尝试<cfset htmlcode = ReplaceNoCase(htmlcode, "&", "", "all")>了,但这并没有删除任何出现的&.
应该怎么做?