在做网站用ewebeditor编辑器时,在插入图片什么之后总是出现代码不规范等问题!
研究吧!!Google、手册之后终于明白:
<input name="news_content" type="hidden" value="<%=server.HTMLEncode(rsn("news_content"))%>"/>
<iframe ID="eWebEditor1" src="ewebeditor/ewebeditor.asp?id=news_content&style=s_coolblue1" frameborder="0" scrolling="no" width="550" HEIGHT="350"></iframe>
要加上server.htmlencode()
呵呵!!
本文介绍了解决使用Ewebeditor编辑器时遇到的代码不规范问题,特别是插入图片后导致的问题。通过使用server.htmlencode()方法确保了HTML代码的正确性。
392

被折叠的 条评论
为什么被折叠?



