一、内容页变成一行修改
1、打开文件e/class/functions.php
2、找到以下函数
function GetHtml($classid,$id,$add,$ecms=0,$doall=0)
3、在//写文件之前添加代码
/*一品技术-替换换行与大空格*/ preg_match_all('/ (.*?)</pre>/s',$string,$r); foreach ($r[0] as $key => $value) { $string=str_replace($value, "[#]".$key."[#]", $string); } $string=preg_replace('[ ]', '',$string); $string=preg_replace('/>s+(.*?)<', $string); foreach ($r[0] as $key => $value) { $string=str_replace("[#]".$key."[#]",$value, $string); } //写文件 WriteFiletext($file,$addlevel.$string);