在内容模板你需要调用的地方使用如下代码输出简介即可过滤简介smalltext前后的空格了:

<?
$qian=array(" "," ","\t","\n","\r");$hou=array("","","","","");
$smalltext=str_replace($qian,$hou,$navinfor[smalltext]);
echo $smalltext;
?>