You are here

public function FeedsXPathParserHTML::__construct in Feeds XPath Parser 7

File

./FeedsXPathParserHTML.inc, line 23
s Contains FeedsXPathParserHTML.

Class

FeedsXPathParserHTML
XPath parsing for HTML.

Code

public function __construct($id) {
  parent::__construct($id);

  // DOMDocument::saveHTML() cannot take $node as an argument prior to 5.3.6.
  if (version_compare(phpversion(), '5.3.6', '>=')) {
    $this->hasSaveHTML = TRUE;
  }
}