请问织梦采集没有自动生成摘要和关键字怎么办
//自动分析关键字和摘要 preg_match("/<meta[\s]+name=['\"]keywords['\"] content=['\"](.*)['\"]/isU",$this->tmpHtml,$inarr); preg_match("/<meta[\s]+content=['\"](.*)['\"] name=['\"]keywords['\"]/isU",$this->tmpHtml,$inarr2); preg_match("/<meta[\s]+name=keywords content=['\"](.*)['\"]/isU",$this->tmpHtml,$inarr3); if(!isset($inarr[1]) && isset($inarr2[1])) { $inarr[1] = $inarr2[1]; } if(!isset($inarr[1]) && isset($inarr3[1])) { $inarr[1] = $inarr3[1]; }
更新时间:2025-04-11 01:28:06
下一篇:请问织梦模板网站名字修改,如何轻松更改织梦模板中的网站名称
转载请注明原文链接:https://www.muzicopy.com/suibi/7930.html