mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-06-29 18:21:07 +00:00
[GolemBridge] Add code elements
The extractor missed <pre> elements for code snippets. For example the code line in https://www.golem.de/news/falsch-deklarierte-hdds-betrug-bei-festplatten-bleibt-ein-problem-2505-196675.html
This commit is contained in:
parent
419844f010
commit
976217111c
@ -152,7 +152,7 @@ class GolemBridge extends FeedExpander
|
||||
$img->src = $img->getAttribute('data-src-full');
|
||||
}
|
||||
|
||||
foreach ($content->find('p, h1, h2, h3, img[src*="."], iframe, video') as $element) {
|
||||
foreach ($content->find('p, h1, h2, h3, pre, img[src*="."], iframe, video') as $element) {
|
||||
$item .= $element;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user