mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 23:57:29 +02:00
Revert "all: Use ->remove() instead of ->outertext = ''"
This reverts commit 052844f5e1
.
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
This commit is contained in:
@@ -18,7 +18,7 @@ class ScmbBridge extends BridgeAbstract {
|
||||
$item['title'] = $article->find('header h1 a', 0)->innertext;
|
||||
|
||||
// remove text "En savoir plus" from anecdote content
|
||||
$article->find('span.read-more', 0)->remove();
|
||||
$article->find('span.read-more', 0)->outertext = '';
|
||||
$content = $article->find('p.summary a', 0)->innertext;
|
||||
|
||||
// remove superfluous spaces at the end
|
||||
|
Reference in New Issue
Block a user