mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
added script to deleted elements in CaschyBridge (#3391)
* added script to deleted elements Now it works much better with included content like twitter, e.g. in this article: https://stadt-bremerhaven.de/1password-mit-android-14-wird-man-passkeys-in-chrome-und-apps-unterstuetzen/ * Update CaschyBridge.php * Update CaschyBridge.php
This commit is contained in:
parent
d0f7f5e2d8
commit
0c540b4637
@ -55,7 +55,10 @@ class CaschyBridge extends FeedExpander
|
|||||||
private function addArticleToItem($item, $article)
|
private function addArticleToItem($item, $article)
|
||||||
{
|
{
|
||||||
// remove unwanted stuff
|
// remove unwanted stuff
|
||||||
foreach ($article->find('div.video-container, div.aawp, p.aawp-disclaimer, iframe.wp-embedded-content, div.wp-embed, p.wp-caption-text') as $element) {
|
foreach (
|
||||||
|
$article->find('div.video-container, div.aawp, p.aawp-disclaimer, iframe.wp-embedded-content,
|
||||||
|
div.wp-embed, p.wp-caption-text, script') as $element
|
||||||
|
) {
|
||||||
$element->remove();
|
$element->remove();
|
||||||
}
|
}
|
||||||
// reload html, as remove() is buggy
|
// reload html, as remove() is buggy
|
||||||
|
Loading…
Reference in New Issue
Block a user