1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-06-25 12:24:11 +02:00

removing a-collapse (#3394)

it is only used for ads for their magazine
e.g.: https://www.heise.de/news/Eventtipps-fuer-Fotografen-und-Fotografiebegeisterte-9010049.html?seite=all
This commit is contained in:
Tone
2023-05-12 23:41:08 +02:00
committed by GitHub
parent 0c540b4637
commit ecd717cf58

View File

@ -150,7 +150,7 @@ class HeiseBridge extends FeedExpander
$article = defaultLinkTo($article, $item['uri']);
// remove unwanted stuff
foreach ($article->find('figure.branding, a-ad, div.ho-text, a-img, .opt-in__content-container, .a-toc__list') as $element) {
foreach ($article->find('figure.branding, a-ad, div.ho-text, a-img, .opt-in__content-container, .a-toc__list, a-collapse') as $element) {
$element->remove();
}
// reload html, as remove() is buggy