标签:strip clear tag panel cat htm des ... code
{$cats[栏目id][content]}
{strcut($cats[ID][‘content‘],字数,‘...‘)}
{strcut(,350)}
//htmlspecialchars_decode:把一些预定义的 HTML 实体转换为字符 strip_tags:去除htm标签
{str_replace(array(‘ ‘, PHP_EOL, ‘ ‘), array(‘‘, ‘‘, ‘‘), strcut(clearhtml($cats[ID][content]),180))}
{mb_substr(clearhtml($t[‘description‘]),0,26,‘utf-8‘)}
标签:strip clear tag panel cat htm des ... code
原文地址:https://www.cnblogs.com/hm21/p/10198982.html