... | ... |
@@ -179,6 +179,10 @@ foreach ($articles as $article ) { |
179 | 179 |
$re = '/<a class="insert__action button button--dark" target="_blank" data-target="jelec-sidebar" href="https:\/\/journal.lemonde.fr\/">Lire le journal numérique<\/a>/'; |
180 | 180 |
$temp = preg_replace($re, '', $article_only); |
181 | 181 |
$article_only = $temp; |
182 |
+ $re = '/<section class="friend"><div (.+?)<\/div> <\/section>/'; |
|
183 |
+ $article_only = preg_replace($re, '', $article_only); |
|
184 |
+ $re = '/<aside class="aside__article old__aside"><section class="friend"><div class=""> <div id="pave_haut" class="dfp-slot dfp__slot friend--around dfp__sticky dfp__slot--pave dfp__slot--desktop dfp-unloaded" data-format="pave_haut" aria-hidden="true"><\/div> <\/div> <\/section><section class="friend"><div id="lig_lemonde_article_teaser_side"><\/div> <\/section><\/aside>/'; |
|
185 |
+ $article_only = preg_replace($re, '', $article_only); |
|
182 | 186 |
|
183 | 187 |
//Remove Thumbnail |
184 | 188 |
$re = '/<img src="\/thumbnail\/journal\/(.+) class="insert__media" alt="">/'; |