public function loadHTML($string) { $this->html = (string) $string; $this->file = null; return $this; }