cagnot 2013-09-22 09:28:45 3595次浏览 4条回复 0 0 0

因为对一些大型文本编辑的需要我加入了FckEditor编辑器,可以正常使用,但是输出的结果却不是理想的格式,而是显示成源代码。查询网上的解决办法, http://www.larryullman.com/2009/12/01/configuring-fckeditor-for-yii-driven-sites/这里有一小段说明: to use PHP’s strip_tags() ;instead, providing with the optional second argument of allowable tags: 一个解决方法是使用PHP的strip_tags()函数代替,提供可选的第二个参数:

但是这个strip_tags()在哪里?

  • 回复于 2013-09-22 09:29 举报

    无语了。看来是解决不了,连“Yiichina”也没有解决

  • 回复于 2013-09-22 09:31 举报

    因为对一些大型文本编辑的需要我加入了FckEditor编辑器,可以正常使用,但是输出的结果却不是理想的格式,而是显示成源代码。查询网上的解决办法,http://www.larryullman.com/2009/12/01/configuring-fckeditor-for-yii-driven-sites/这里有一小段说明:

    A logical work-around is to use PHP’s strip_tags() instead, providing it with the optional second argument of allowable tags:
    

    一个解决方法是使用PHP的strip_tags()函数代替,提供可选的第二个参数:
    echo strip_tags($model->content, '<p><a><div><ul><ol><li><span>');但是这个strip_tags()在哪里?

  • 回复于 2013-09-22 09:31 举报

    真无法解决吗

  • 回复于 2013-09-22 09:57 举报

    知道了,我以为strip_tags()是在Yii框架里,原来只是个php函数,直接使用就行了

您需要登录后才可以回复。登录 | 立即注册