You are here

protected function XmlParser::getTidyConfig in Feeds extensible parsers 8

Returns the options for phptidy.

Return value

array The configuration array.

See also

http://php.net/manual/en/book.tidy.php

tidy_repair_string()

1 call to XmlParser::getTidyConfig()
XmlParser::prepareDocument in src/Feeds/Parser/XmlParser.php
Prepares the DOM document.
2 methods override XmlParser::getTidyConfig()
HtmlParser::getTidyConfig in src/Feeds/Parser/HtmlParser.php
Returns the options for phptidy.
QueryPathHtmlParser::getTidyConfig in src/Feeds/Parser/QueryPathHtmlParser.php
Returns the options for phptidy.

File

src/Feeds/Parser/XmlParser.php, line 418

Class

XmlParser
Defines a XML parser using XPath.

Namespace

Drupal\feeds_ex\Feeds\Parser

Code

protected function getTidyConfig() {
  return [
    'input-xml' => TRUE,
    'output-xml' => TRUE,
    'add-xml-decl' => TRUE,
    'wrap' => 0,
    'tidy-mark' => FALSE,
  ];
}