我们在FCKEditor中输入Html代码时,默认的情况下,它会按照我们输入的内容原样输出,这样的话,我们在页面上看到的并不是我们想要的效果。比如,我们想输出<a href="">sdf</a>这些文字,结果在页面上出现的是一个链接。怎么解决这个问题呢?很简单,就是设置HtmlEncodeOutput属性为false。
示例:<asp:FCKeditor ID="editor" runat="server" Height="450" HtmlEncodeOutput="false"></asp:FCKeditor>