Compare commits

..

No commits in common. "master" and "V4.2.7" have entirely different histories.

View File

@ -125,8 +125,8 @@ class Query
*/ */
public function removeHead() public function removeHead()
{ {
$html = preg_replace('/(<head>|<head\s+.+?>).+?<\/head>/is', '<head></head>', $this->html); $html = preg_replace('/<head.+?>.+<\/head>/is', '<head></head>', $this->html);
$html && $this->setHtml($html); $this->setHtml($html);
return $this->ql; return $this->ql;
} }