finecms首页获取单网页内容

时间:2018-12-30 12:41:00   收藏:0   阅读:170

首页获取单网页内容

{$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‘)}

原文:https://www.cnblogs.com/hm21/p/10198982.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!