You are here

protected function QueryPathHtmlParser::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 QueryPathHtmlParser::getTidyConfig()
QueryPathHtmlParser::prepareDocument in src/Feeds/Parser/QueryPathHtmlParser.php
Prepares the DOM document.

File

src/Feeds/Parser/QueryPathHtmlParser.php, line 58

Class

QueryPathHtmlParser
Defines a HTML parser using QueryPath.

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,
    'word-2000' => TRUE,
  ];
}