aboutsummaryrefslogtreecommitdiff
path: root/bridges/OsmAndBlogBridge.php
diff options
context:
space:
mode:
authorGravatar logmanoriginal <logmanoriginal@users.noreply.github.com> 2019-06-02 13:03:26 +0200
committerGravatar logmanoriginal <logmanoriginal@users.noreply.github.com> 2019-06-02 13:06:16 +0200
commit6c4098d6558c33a5fcb2a8bc9fb29e915d56fc6c (patch)
tree433e33c7cab8b7aac2342c7d8c8e8ddf325463c5 /bridges/OsmAndBlogBridge.php
parent468d8be72d34f0a94e5ae4090b3321c5bda4db35 (diff)
downloadrss-bridge-6c4098d6558c33a5fcb2a8bc9fb29e915d56fc6c.tar.gz
rss-bridge-6c4098d6558c33a5fcb2a8bc9fb29e915d56fc6c.tar.zst
rss-bridge-6c4098d6558c33a5fcb2a8bc9fb29e915d56fc6c.zip
Revert "all: Use ->remove() instead of ->outertext = ''"
This reverts commit 052844f5e13c71ceefd743136a71f71226a0eefb. There is a bug in ->remove() that causes the parser to incorrectly identify elements in the DOM tree that shouldn't exist anymore. References #1151
Diffstat (limited to 'bridges/OsmAndBlogBridge.php')
-rw-r--r--bridges/OsmAndBlogBridge.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridges/OsmAndBlogBridge.php b/bridges/OsmAndBlogBridge.php
index 25e765f5..402c0301 100644
--- a/bridges/OsmAndBlogBridge.php
+++ b/bridges/OsmAndBlogBridge.php
@@ -51,7 +51,7 @@ class OsmAndBlogBridge extends BridgeAbstract {
private function cleanupContent($content, ...$removeItems) {
foreach ($removeItems as $obj) {
- if ($obj) $obj->remove();
+ if ($obj) $obj->outertext = '';
}
foreach ($content->find('img') as $obj) {
$obj->src = $this->filterURL($obj->src);