直接进行替换,将双引号”替换成其他的,以下为代码
<?=esub(str_replace('"','"',str_replace(egetzy('rn'),'',$navinfor[smalltext])),120);?>
如果想替换成其他的,可以自行修改下。
如果上面方法不行,以下为网上通用方法
打开文件e/class/connect.php
找到函数
sub($string,$start=0,$length,$mode=false,$dot='')
将其中的代码
$string=str_replace(array(' ','&','"','<','>','''),array('','&','"','<','>',"'"),$string);
替换为
$string=str_replace(array(' ','&','"','<','>',''','“','”'),array('','&','"','<','>',"'",'"','"'),$string);
上一篇:帝国CMS最高效的几种随机文章的写法
下一篇:帝国CMS内容页模板某个字段没有填写就不显示(亲测有效)
自动提取









