Merge pull request #143 from maxiaozhi/patch-1
Fix the matching exception
This commit is contained in:
commit
39dc0ca9c6
@ -125,7 +125,7 @@ class Query
|
||||
*/
|
||||
public function removeHead()
|
||||
{
|
||||
$html = preg_replace('/<head.+?>.+<\/head>/is', '<head></head>', $this->html);
|
||||
$html = preg_replace('/(<head>|<head\s+.+?>).+<\/head>/is', '<head></head>', $this->html);
|
||||
$this->setHtml($html);
|
||||
return $this->ql;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user