fckeditor的内容存读取问题
时间:2009-08-21
来源:互联网
提交fckeditor控件的内容存到数据库中的值为:
<p>内容----fckeditorfckeditor内容内容内容内容内容内容</p>
从数据库中读取放到模版页上显示的却为:
<p>内容----fckeditorfckeditor内容内容内容内容内容内容</p>
本应该在数据库存为:
<p>内容----fckeditorfckeditor内容内容内容内容内容内容</p>
画面显示为:
内容----fckeditorfckeditor内容内容内容内容内容内容
请问高手,是不是哪里还需要设置才能在显示时,不显示html标签呢?
作者: sunsmile 发布时间: 2009-08-21
作者: sunsmile 发布时间: 2009-08-22
作者: sunsmile 发布时间: 2009-08-24
作者: izyue 发布时间: 2009-08-24
作者: 丛铭 发布时间: 2009-08-24
izyue
模版页:
-
- <tr>
- <td>内容</td>
- <td>
- <html:editor type="fckeditor" id="editor" width="80%" height="300px" name="content" />
- </td>
- </tr>
- $data=$_POST;
- $DocumentSend = D('DocumentSend');
- if($DocumentSend->create()) {
- $DocumentSend->sendAccountId = $this->getUid();
- $DocumentSend->sendTime = date("Y-m-d H:i:s");
-
- $DocumentSend->add();
- }
很是纳闷啊
作者: sunsmile 发布时间: 2009-08-28
- $data=$_POST;
- $DocumentSend = D('DocumentSend');
- if($DocumentSend->create()) {
- $DocumentSend->sendAccountId = $this->getUid();
- $DocumentSend->sendTime = date("Y-m-d H:i:s");
-
- $DocumentSend->add();
- }
<p>内容----fckeditorfckeditor内容内容内容内容内容内容</p>
也就是传过来就是这样的,猜测是Dispatcher类里面有转义啥的
可Dispatcher类和shuguangcms里的一样啊,shuguangcms里就可以正常显示
哪位大侠有预见相同问题的没有?给指点一下!
作者: sunsmile 发布时间: 2009-08-31
貌似这个原因!
作者: sunsmile 发布时间: 2009-08-31
作者: spark 发布时间: 2009-09-07
作者: fgpgy 发布时间: 2010-04-15
作者: bgh1988 发布时间: 2011-11-29
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28