在内容模板你需要调用的地方使用如下代码输出简介即可过滤简介smalltext前后的空格了:
<? $qian=array(" "," ","\t","\n","\r");$hou=array("","","","",""); $smalltext=str_replace($qian,$hou,$navinfor[smalltext]); echo $smalltext; ?>
帝国CMS内容页模板过滤清理简介smalltext前后空格的方法!
原文:https://www.cnblogs.com/kuba8/p/12825744.html