Révision f066bdb5
Ajouté par Assos Assos il y a plus de 9 ans
drupal7/sites/all/modules/feeds_xpathparser/FeedsXPathParserHTML.inc | ||
---|---|---|
2 | 2 |
|
3 | 3 |
/** |
4 | 4 |
* @files |
5 |
* Provides the FeedsXPathParserHTML class. |
|
5 |
* Contains FeedsXPathParserHTML. |
|
6 |
*/ |
|
7 |
|
|
8 |
/** |
|
9 |
* XPath parsing for HTML. |
|
6 | 10 |
*/ |
7 | 11 |
class FeedsXPathParserHTML extends FeedsXPathParserBase { |
8 | 12 |
|
... | ... | |
25 | 29 |
*/ |
26 | 30 |
protected function setup($source_config, FeedsFetcherResult $fetcher_result) { |
27 | 31 |
|
28 |
if (!empty($source_config['exp']['tidy'])) { |
|
32 |
if (!empty($source_config['exp']['tidy']) && extension_loaded('tidy')) {
|
|
29 | 33 |
$config = array( |
30 | 34 |
'merge-divs' => FALSE, |
31 | 35 |
'merge-spans' => FALSE, |
Formats disponibles : Unified diff
Weekly update of contrib modules