public function loadStr($str, $option)
{
$this->options = new Options();
$this->options->setOptions($this->globalOptions)->setOptions($option);
$this->rawSize = strlen($str);
$this->raw = $str;
$html = $this->clean($str);
$this->size = strlen($str);
$this->content = new Content($html);
$this->parse();
$this->detectCharset();
return $this;
}
private function generateHtmlFields($response) { $dom = new Dom(); $dom->loadStr($response, array()); $contents = $dom->find('.caixacampobranco')[0]; if ($contents === null) { return false; } $fields = $contents->find('span'); return $fields; }