private function _removeHead($html) { return preg_replace('/<head.+?>.+<\\/head>/is', '<head></head>', $html); }