mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 14:18:35 +01: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)
|
||||
{
|
||||
// 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();
|
||||
}
|
||||
// reload html, as remove() is buggy
|
||||
|
Loading…
x
Reference in New Issue
Block a user