You are here

protected function HtmlParser::getTidyConfig in Feeds extensible parsers 8

Returns the options for phptidy.

Return value

array The configuration array.

Overrides XmlParser::getTidyConfig

See also

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

tidy_repair_string()

1 call to HtmlParser::getTidyConfig()
HtmlParser::prepareDocument in src/Feeds/Parser/HtmlParser.php
Prepares the DOM document.

File

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

Class

HtmlParser
Defines a HTML parser using XPath.

Namespace

Drupal\feeds_ex\Feeds\Parser

Code

protected function getTidyConfig() {
  return [
    'merge-divs' => FALSE,
    'merge-spans' => FALSE,
    'join-styles' => FALSE,
    'drop-empty-paras' => FALSE,
    'wrap' => 0,
    'tidy-mark' => FALSE,
    'escape-cdata' => TRUE,
  ];
}