您的位置:宽带测速网 > 帝国cms > 解决帝国CMS文章自动提取简介后双引号显示成”方法(区别于网上的方法)

解决帝国CMS文章自动提取简介后双引号显示成”方法(区别于网上的方法)

2025-06-13 13:43来源:互联网 [ ]

直接进行替换,将双引号”替换成其他的,以下为代码

<?=esub(str_replace('"','&quot;',str_replace(egetzy('rn'),'',$navinfor[smalltext])),120);?>
如果想替换成其他的,可以自行修改下。
如果上面方法不行,以下为网上通用方法
打开文件e/class/connect.php
找到函数

sub($string,$start=0,$length,$mode=false,$dot='')
将其中的代码

$string=str_replace(array('&nbsp;','&amp;','&quot;','<','>','&#039;'),array('','&','"','<','>',"'"),$string);
替换为

$string=str_replace(array('&nbsp;','&amp;','&quot;','<','>','&#039;','&ldquo;','&rdquo;'),array('','&','"','<','>',"'",'"','"'),$string);