You are here

protected function FeedsExHtml::getTidyConfig in Feeds extensible parsers 7

Same name and namespace in other branches
  1. 7.2 src/FeedsExHtml.inc \FeedsExHtml::getTidyConfig()

Returns the options for phptidy.

Return value

array The configuration array.

Overrides FeedsExXml::getTidyConfig

See also

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

tidy_repair_string()

1 call to FeedsExHtml::getTidyConfig()
FeedsExHtml::prepareDocument in src/FeedsExHtml.inc
Prepares the DOM document.

File

src/FeedsExHtml.inc, line 58
Contains FeedsExHtml.

Class

FeedsExHtml
Parses HTML documents with XPath.

Code

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