有朋友反馈,采集规则编写时,需要对keywords进行剔除,使用
{dede:trim replace=''}(.*){/dede:trim}
过滤规则无效。查看了下,附上解决办法:
修改include/dedecollection.class.php,717行:
$keywords = preg_replace("#".$this->artNotes['keywordtrim']."#isU",'',$keywords); |
为:
$keywords = preg_replace("/".$this->artNotes['keywordtrim']."/isU",'',$keywords); |
标签:
织梦采集过滤keywords