diff options
author | 2019-06-02 13:03:26 +0200 | |
---|---|---|
committer | 2019-06-02 13:06:16 +0200 | |
commit | 6c4098d6558c33a5fcb2a8bc9fb29e915d56fc6c (patch) | |
tree | 433e33c7cab8b7aac2342c7d8c8e8ddf325463c5 /bridges/WordPressBridge.php | |
parent | 468d8be72d34f0a94e5ae4090b3321c5bda4db35 (diff) | |
download | rss-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/WordPressBridge.php')
-rw-r--r-- | bridges/WordPressBridge.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridges/WordPressBridge.php b/bridges/WordPressBridge.php index 18045559..1589c723 100644 --- a/bridges/WordPressBridge.php +++ b/bridges/WordPressBridge.php @@ -50,7 +50,7 @@ class WordPressBridge extends FeedExpander { foreach ($article->find('h1.entry-title') as $title) if ($title->plaintext == $item['title']) - $title->remove(); + $title->outertext = ''; $article_image = $article_html->find('img.wp-post-image', 0); if(!empty($item['content']) && (!is_object($article_image) || empty($article_image->src))) { |