PicoFeed\Scraper\CandidateParser::__construct PHP Method

__construct() public method

Constructor.
public __construct ( string $html )
$html string
    public function __construct($html)
    {
        $this->dom = XmlParser::getHtmlDocument('<?xml version="1.0" encoding="UTF-8">' . $html);
        $this->xpath = new DOMXPath($this->dom);
    }