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

网上流传的最多的一种方法,测试后发现不行,以下为修改后的最新方法。

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

<?=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);

具体用什么方法,请自行测试。

发布者:彬彬笔记,转载请注明出处:https://www.binbinbiji.com/diguocms/2308.html

(0)
彬彬笔记彬彬笔记
上一篇 2022年5月30日
下一篇 2022年5月30日

相关推荐

发表回复

登录后才能评论
蜀ICP备14017386号-13