php程序员业余承接网页制作、软件开发。

有需要请联系13714715608

看看案例...

ckeditor里的html实体被自动转义怎么办?

2016-11-12T05:18:25.000000Z wudimei

ckeditor里的html实体被textarea自动转义怎么办?

其实很简单,加上htmlspecialchars()函数就可以了。

<textarea id="content" name="content"><?php echo htmlspecialchars(  $row->content); ?></textarea>  
<script type="text/javascript">
        CKEDITOR.replace( 'content' );
</script>