无聊人士

搬家==》www.soapui.cn

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  32 随笔 :: 0 文章 :: 60 评论 :: 0 Trackbacks
以如下字符串为例:
<h1>AVG Internet Security full license free of charge!</h1>
<p>GRISOFT
, the supplier of AVG security software, has released the Public Beta 2 version of the upcoming AVG 7.5 edition. Individual programs are now available for testing purposes to everyone. Why not participate in our AVG beta testing, complete the questionnaire about testing AVG 7.5 and get a free license? We will draw 100 participants from all of the received feedback forms. Winners will obtain a two-year license for AVG Internet Security 7.5 completely free of charge.</p>
使用RichTextEditor进行编辑时,产生的html有oFCKeditor_InfoEdit_model_content.Value = 'xxx'字样,由于字符串中包含单引号、双引号、换行符等字符,编辑器无法进行处理,浏览器控制台报js错误。

在freemarker中提供了一个StringUtil工具,在使用RichTextEditor前,应使用StringUtil.javaStringEnc()进行预处理。
posted on 2006-09-25 12:05 mmwy 阅读(804) 评论(1)  编辑  收藏 所属分类: WebWork、Struts2、FreeMarker

评论

# re: ww2 RichTextEditor编辑器javascript特殊字符的问题 2008-04-02 17:31 榊龍
榊龍  回复  更多评论
  


只有注册用户登录后才能发表评论。


网站导航: