diff --git a/application/default/controllers/ServiceController.php b/application/default/controllers/ServiceController.php index aec57f47..6201996d 100644 --- a/application/default/controllers/ServiceController.php +++ b/application/default/controllers/ServiceController.php @@ -1029,7 +1029,7 @@ class ServiceController extends Zend_Controller_Action $error = "无搜索结果"; } - if(preg_match_all("#<\/span>(.*)
(.+?)#im",$html,$matchs,PREG_PATTERN_ORDER)) + if(preg_match_all("!(.*)<\/span>!im",$html,$matchs,PREG_PATTERN_ORDER)) { foreach ($matchs[0] as $k=>$v){ if($k < $max) $rev[$k]['content']=utf8_encode($v);