diff --git a/epub.php b/epub.php index 161c607..831ecb2 100644 --- a/epub.php +++ b/epub.php @@ -75,7 +75,6 @@ // articles accès libre $nodes = $finder->query('//div[contains(@class, "news__body__center__article")]'); } - // todo add "boite noire" if (!$nodes->length) { @@ -86,6 +85,15 @@ $node = $nodes->item(0); $nodehtml = get_clean_html($node); $result .= $nodehtml; + + // add boite noire + $nodes = $finder->query('//aside[contains(@class, "_black")]'); + if ($nodes->length) + { + $node = $nodes->item(0); + $nodehtml = get_clean_html($node); + $result .= '