cagnot
知道了,我以为strip_tags()是在Yii框架里,原来只是个php函数,直接使用就行了
真无法解决吗
因为对一些大型文本编辑的需要我加入了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()在哪里?无语了。看来是解决不了,连“Yiichina”也没有解决