aboutsummaryrefslogtreecommitdiff
path: root/bridges/JustETFBridge.php
diff options
context:
space:
mode:
Diffstat (limited to 'bridges/JustETFBridge.php')
-rw-r--r--bridges/JustETFBridge.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/bridges/JustETFBridge.php b/bridges/JustETFBridge.php
index c9201e4b..8d5b3d5a 100644
--- a/bridges/JustETFBridge.php
+++ b/bridges/JustETFBridge.php
@@ -239,16 +239,16 @@ class JustETFBridge extends BridgeAbstract {
or returnServerError('Article body not found!');
// Remove teaser image
- $element->find('img.teaser-img', 0)->remove();
+ $element->find('img.teaser-img', 0)->outertext = '';
// Remove self advertisements
foreach($element->find('.call-action') as $adv) {
- $adv->remove();
+ $adv->outertext = '';
}
// Remove tips
foreach($element->find('.panel-edu') as $tip) {
- $tip->remove();
+ $tip->outertext = '';
}
// Remove inline scripts (used for i.e. interactive graphs) as they are
@@ -318,7 +318,7 @@ class JustETFBridge extends BridgeAbstract {
$description = $description->parent();
foreach($description->find('div') as $div) {
- $div->remove();
+ $div->outertext = '';
}
$quote = $html->find('div.infobox div.val', 0)