protected function makeDomDocument($string) { $dom = new \DOMDocument(); $dom->loadHTML($string); return $dom; }