You are here

protected function XPathHTMLParser::getRaw in Feeds XPath Parser 8

Returns the raw node value.

@todo Refactor.

Parameters

\DOMNode $node: The DOMNode to convert to a string.

Return value

string The string representation of the DOMNode.

Overrides ParserBase::getRaw

File

lib/Drupal/feeds_xpathparser/Plugin/feeds/Parser/XPathHTMLParser.php, line 65
Contains \Drupal\feeds_xpathparser\Plugin\feeds\Parser\XPathHTMLParser.

Class

XPathHTMLParser
Defines an HTML feed parser.

Namespace

Drupal\feeds_xpathparser\Plugin\feeds\Parser

Code

protected function getRaw(\DOMNode $node) {
  return $this->doc
    ->saveHTML($node);
}