mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-31 22:05:20 +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();
|
$element->remove();
|
||||||
}
|
}
|
||||||
|
foreach ($article->find('img') as $element) {
|
||||||
|
if (str_contains($element->alt, 'l+f')) {
|
||||||
|
$element->remove();
|
||||||
|
}
|
||||||
|
}
|
||||||
// reload html, as remove() is buggy
|
// reload html, as remove() is buggy
|
||||||
$article = str_get_html($article->outertext);
|
$article = str_get_html($article->outertext);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue