changeitcn 发表于 2011-4-3 11:44:58

CKEDITOR的问题

配置了CKEDITOR, 在更新的时候,本来是这样的代码 ,

数据库里面,被更新成了这个样子,
'<p>
<strong>&lt;p&gt; 333&lt;/p&gt;</strong></p>'

于是, 再次打开之后, 就变成这个样子了, 要怎么写呢?


CONTROLER我是这么写的
    $content=isset($_POST['content'])?$_POST['content']:'';
    $this->data['content'] = $content;

VIEW里是
<?php echo $this->ckeditor->editor("content",   set_value('content') );?>

huboo82 发表于 2011-4-3 13:19:11

“要怎么写呢”
333

smartweb 发表于 2011-4-5 17:43:25

这样才是正道,存HTML代码
页: [1]
查看完整版本: CKEDITOR的问题