You are here

protected function FeedsExQueryPathHtml::getTidyConfig in Feeds extensible parsers 7

Same name and namespace in other branches
  1. 7.2 src/FeedsExQueryPathHtml.inc \FeedsExQueryPathHtml::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 FeedsExQueryPathHtml::getTidyConfig()
FeedsExQueryPathHtml::prepareDocument in src/FeedsExQueryPathHtml.inc
Prepares the DOM document.

File

src/FeedsExQueryPathHtml.inc, line 47
Contains FeedsExQueryPathHtml.

Class

FeedsExQueryPathHtml
Parses HTML documents with QueryPath.

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,
  );
}