mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-16 06:26:24 +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:
@ -48,7 +48,7 @@ class SIMARBridge extends BridgeAbstract {
|
||||
foreach($e_item->find('p') as $paragraph) {
|
||||
/* Remove empty paragraphs */
|
||||
if (preg_match('/^(\W| )+$/', $paragraph->innertext) == 1) {
|
||||
$paragraph->remove();
|
||||
$paragraph->outertext = '';
|
||||
}
|
||||
}
|
||||
if ($e_item) {
|
||||
|
Reference in New Issue
Block a user