protected function HtmlParser::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 HtmlParser::getTidyConfig()
- HtmlParser::prepareDocument in src/
Feeds/ Parser/ HtmlParser.php - Prepares the DOM document.
File
- src/
Feeds/ Parser/ HtmlParser.php, line 53
Class
- HtmlParser
- Defines a HTML parser using XPath.
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,
];
}