You are here

protected function FeedsExQueryPathHtml::getTidyConfig in Feeds extensible parsers 7.2

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

File

src/FeedsExQueryPathHtml.inc, line 76
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,
  );
}