解决办法:
1、打开文件e/class/functions.php
2、找到函数
ReplaceKey($newstext,$classid=0)
3、找到替换代码
if(STR_IREPLACE) { $newstext=empty($public_r[repkeynum])?str_ireplace($r[keyname],‘<a href=‘.$r[keyurl].‘ target=_blank class=infotextkey>‘.$r[keyname].‘</a>‘,$newstext):preg_replace(‘/‘.$r[keyname].‘/i‘,‘<a href=‘.$r[keyurl].‘ target=_blank class=infotextkey>‘.$r[keyname].‘</a>‘,$newstext,$public_r[repkeynum]); } else { $newstext=empty($public_r[repkeynum])?str_replace($r[keyname],‘<a href=‘.$r[keyurl].‘ target=_blank class=infotextkey>‘.$r[keyname].‘</a>‘,$newstext):preg_replace(‘/‘.$r[keyname].‘/i‘,‘<a href=‘.$r[keyurl].‘ target=_blank class=infotextkey>‘.$r[keyname].‘</a>‘,$newstext,$public_r[repkeynum]); }
if(STR_IREPLACE) { $newstext=preg_replace(‘/(?!<[^>]*)‘.$r[keyname].‘(?![^<]*>)/i‘,‘<a href=‘.$r[keyurl].‘ target=_blank class=infotextkey>‘.$r[keyname].‘</a>‘,$newstext,$public_r[repkeynum]?$public_r[repkeynum]:-1); } else { $newstext=preg_replace(‘/(?!<[^>]*)‘.$r[keyname].‘(?![^<]*>)/i‘,‘<a href=‘.$r[keyurl].‘ target=_blank class=infotextkey>‘.$r[keyname].‘</a>‘,$newstext,$public_r[repkeynum]?$public_r[repkeynum]:-1); }
关键字替换排除HTML标签属性字符,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/wordgao/p/3849214.html