You are here

protected function HtmlParser::getRaw in Feeds extensible parsers 8

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 XmlParser::getRaw

File

src/Feeds/Parser/HtmlParser.php, line 46

Class

HtmlParser
Defines a HTML parser using XPath.

Namespace

Drupal\feeds_ex\Feeds\Parser

Code

protected function getRaw(DOMNode $node) {
  return $node->ownerDocument
    ->saveHTML($node);
}