我正在使用文本助手的截斷方法,這樣做意味着正在呈現文本中包含的任何html。無論如何設置文本幫手去除html標籤嗎?CakePHP:使用文本助手去除HTML?
echo $text->truncate(
$project['Project']['description'],
250,
array(
'ending' => '...',
'exact' => false
)
);
是否有修改此類似stripLinks方法?
感謝,
Jonesy
感謝,uised strip_tags()到底 – iamjonesy 2010-10-12 14:12:38