protected function FeedsXPathParserHTML::getRaw in Feeds XPath Parser 7
Same name and namespace in other branches
- 6 FeedsXPathParserHTML.inc \FeedsXPathParserHTML::getRaw()
Helper callback to return the raw value.
Parameters
DOMNode $node: The DOMNode to convert to a string.
Return value
string The string representation of the DOMNode.
Overrides FeedsXPathParserBase::getRaw
File
- ./
FeedsXPathParserHTML.inc, line 88 - s Contains FeedsXPathParserHTML.
Class
- FeedsXPathParserHTML
- XPath parsing for HTML.
Code
protected function getRaw(DOMNode $node) {
if ($this->hasSaveHTML) {
return $this->doc
->saveHTML($node);
}
return $this->doc
->saveXML($node, LIBXML_NOEMPTYTAG);
}