2
Test Color <font color="&#x23;ffcc99">This is Color</font> --> Google Chrome  
Test Color &lt;FONT color=#ffcc99&gt;This is Color -- > IE 8

当我使用 ajax html 编辑器扩展器保存文本并在 google chrome 中更改字体颜色时,它可以正常工作,但是当我在 IE8 中执行相同操作时,文本会更改为上面提到的不同格式,这不起作用。我该如何解决?

4

1 回答 1

1

这个论坛帖子帮助了我:http ://forums.asp.net/t/1751476.aspx

当您读取或写入 html 时,只需使用 Server.HtmlDecode(无论您的 html 是什么);

此外,在回发时,我必须这样做:

htmlEditor.Text = Server.HtmlDecode(htmlEditor.Text);
于 2013-10-16T17:11:13.157 回答