mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-24 02:16:08 +03:00
[HeiseBridge] Remove lost+found icon
Remove the icon visible in l+f articles, e.g. https://www.heise.de/news/l-f-DISGOMOJI-die-Linux-Malware-die-auf-Emojis-steht-9765024.html Using a css selector in the form img[alt*="l+f"] was tried, but is not supported by the used library.
This commit is contained in:
parent
649dfa7292
commit
0eac7a0784
1 changed files with 5 additions and 0 deletions
|
@ -166,6 +166,11 @@ class HeiseBridge extends FeedExpander
|
|||
) {
|
||||
$element->remove();
|
||||
}
|
||||
foreach ($article->find('img') as $element) {
|
||||
if (str_contains($element->alt, 'l+f')) {
|
||||
$element->remove();
|
||||
}
|
||||
}
|
||||
// reload html, as remove() is buggy
|
||||
$article = str_get_html($article->outertext);
|
||||
|
||||
|
|
Loading…
Reference in a new issue