aboutsummaryrefslogtreecommitdiff
path: root/bridges/EconomistBridge.php
diff options
context:
space:
mode:
Diffstat (limited to 'bridges/EconomistBridge.php')
-rw-r--r--bridges/EconomistBridge.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/bridges/EconomistBridge.php b/bridges/EconomistBridge.php
index 19b2a832..1256be45 100644
--- a/bridges/EconomistBridge.php
+++ b/bridges/EconomistBridge.php
@@ -29,16 +29,16 @@ class EconomistBridge extends BridgeAbstract {
// Remove newsletter subscription box
$newsletter = $content->find('div[class="newsletter-form__message"]', 0);
if ($newsletter)
- $newsletter->remove();
+ $newsletter->outertext = '';
$newsletterForm = $content->find('form', 0);
if ($newsletterForm)
- $newsletterForm->remove();
+ $newsletterForm->outertext = '';
// Remove next and previous article URLs at the bottom
$nextprev = $content->find('div[class="blog-post__next-previous-wrapper"]', 0);
if ($nextprev)
- $nextprev->remove();
+ $nextprev->outertext = '';
$section = [ $article->find('h3[itemprop="articleSection"]', 0)->plaintext ];