解决帝国CMS文章自动提取简介后双引号显示成”方法(区别于网上的方法)
直接进行替换,将双引号”替换成其他的,以下为代码
<?=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);