在内容模板你需要调用的地方使用如下代码输出简介即可过滤简介smalltext前后的空格了:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/10325.html
<?
$qian=array(" "," ","/t","/n","/r");$hou=array("","","","","");
$smalltext=str_replace($qian,$hou,$navinfor[smalltext]);
echo $smalltext;
?>文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/10325.html