You are here

protected function FeedsExHtml::getTidyConfig in Feeds extensible parsers 7.2

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

Returns the options for phptidy.

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

Return value

array The configuration array.

Overrides FeedsExXml::getTidyConfig

See also

tidy_repair_string()

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

File

src/FeedsExHtml.inc, line 84
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,
    'word-2000' => TRUE,
  );
}