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
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\ParserCode
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,
];
}