主题: 编辑器在复制有些文本时为什么会出现操作符丢失,而写不进数据库?
作者: 512ju, 发布日期: 2011-05-17 16:43:49, 浏览数: 4283

比如这一段样式会通不过:

 

<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: 16px;"><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">出售:碧波花园</span><span lang="EN-US"><span style="font-family: Times New Roman;">3</span></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';"></span><span lang="EN-US"><span style="font-family: Times New Roman;">1</span></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">厅,</span><span lang="EN-US"><span style="font-family: Times New Roman;">84</span></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">平方米,仅售</span><span lang="EN-US"><span style="font-family: Times New Roman;">72</span></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">万元。房间采光好,前后双阳台,装修,满</span><span lang="EN-US"><span style="font-family: Times New Roman;">5</span></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">年,双学区房。小区绿化率高,周围配套设施齐全,地铁、车站、银行、超市、学校、菜场、医院等一应倶全,属吴中区成熟小区。看房在晚上</span><span lang="EN-US"><span style="font-family: Times New Roman;">6</span></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';"></span><span lang="EN-US"><span style="font-family: Times New Roman;">30</span></span><span style="font-family: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">分过后。</span></span></p>

作者: 512ju, 发布日期: 2011-05-17 17:34:53

有人帮忙吗?

http://secondhand.suzhou.eeju.com/2489065.htm

这个网址中的房源描述文字你复制到kindeditor编辑器,然后保存数据到数据库,出错,我用了很久,也就今天出现这么奇怪的问题!

回复
作者: Roddy, 发布日期: 2011-05-17 20:51:59
是不是没做数据库的escape处理?输入单引号提交看看。
回复
发表新帖 发表回复