diff --git a/src/Dom/Query.php b/src/Dom/Query.php index 9e75bea..2899c3c 100644 --- a/src/Dom/Query.php +++ b/src/Dom/Query.php @@ -125,7 +125,7 @@ class Query */ public function removeHead() { - $html = preg_replace('/.+<\/head>/is', '', $this->html); + $html = preg_replace('/(|).+<\/head>/is', '', $this->html); $this->setHtml($html); return $this->ql; }