找到文件 e\class\connect.php
将
//截取简介
function SubSmalltextVal($value,$len){
if(empty($len))
{
return '';
}
$value=str_replace(array("\r\n","<br />","<br>"," ","[!--empirenews.page--]","[/!--empirenews.page--]"),array("","\r\n","\r\n"," ","",""),$value);
$value=strip_tags($value);
if($len)
{
$value=sub($value,0,$len,false);
}
$value=trim($value,"\r\n");
$value=str_replace('&ldquo;','“',$value);
$value=str_replace('&rdquo;','”',$value);
$value=str_replace('&mdash;','—',$value);
return $value;
}
替换成
//截取简介
function SubSmalltextVal($value,$len){
if(empty($len))
{
return '';
}
$value=str_replace(array("\r\n","\r","\n","<br />","<br>"," ","[!--empirenews.page--]","[/!--empirenews.page--]"),array("","","","",""," ","",""),$value);
$value=strip_tags($value);
if($len)
{
$value=sub($value,0,$len,false);
}
$value=trim($value,"\r\n");
$value=str_replace('&ldquo;','"',$value);
$value=str_replace('&rdquo;','"',$value);
$value=str_replace('&mdash;','—',$value);
$value=str_replace('&hellip;','…',$value);
return $value;
}
然后去帝国后台-栏目管理-批量替换信息内容
替换字段smalltext
&ldquo;
替换为 "
&rdquo;
替换为 "
&mdash;
替换为 —
&hellip;
替换为 …
然后重新生成所有页面就可以了