/** * Load html into the manipulator. * * @param string $buffer HTML buffer. * @param string|bool $charset Encoding Charset. If false encoding is ignored. If not set the dom charset is used. * * @return $this */ public function loadHtml($buffer, $charset = 'UTF-8') { $this->document = $this->converter->parseHtml($buffer, $charset); return $this; }