You are here

protected function FeedsExHtml::getRaw in Feeds extensible parsers 7

Same name and namespace in other branches
  1. 7.2 src/FeedsExHtml.inc \FeedsExHtml::getRaw()

Returns the raw XML of a DOM node.

Parameters

DOMNode $node: The node to convert to raw XML.

Return value

string The raw XML.

Overrides FeedsExXml::getRaw

File

src/FeedsExHtml.inc, line 48
Contains FeedsExHtml.

Class

FeedsExHtml
Parses HTML documents with XPath.

Code

protected function getRaw(DOMNode $node) {
  if ($this->useSaveHTML) {
    return $node->ownerDocument
      ->saveHTML($node);
  }
  return $node->ownerDocument
    ->saveXML($node, LIBXML_NOEMPTYTAG);
}