mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
Update CaschyBridge.php (#3261)
prevents the bug #3259 that quote-blocks will be displayed multiple times
This commit is contained in:
parent
286790727b
commit
5d4247dded
@ -61,13 +61,8 @@ class CaschyBridge extends FeedExpander
|
|||||||
// reload html, as remove() is buggy
|
// reload html, as remove() is buggy
|
||||||
$article = str_get_html($article->outertext);
|
$article = str_get_html($article->outertext);
|
||||||
|
|
||||||
$content = $article->find('.entry-inner', 0);
|
$content = $article->find('div.entry-inner', 0);
|
||||||
if ($content) {
|
$item['content'] = $content;
|
||||||
$contentElements = $content->find(
|
|
||||||
'div, p, h3, ul, table, pre'
|
|
||||||
);
|
|
||||||
$item['content'] = implode('', $contentElements);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user