[GolemBridge] Add h2 elements from article content

Else some headers are just missing.
Example article with previously missing movie names:
https://www.golem.de/news/science-fiction-die-zehn-besten-filme-aus-den-spannenden-70ern-2312-179557.html
This commit is contained in:
Mynacol 2023-12-16 10:43:27 +01:00
parent d4ae55733b
commit 0116dde275
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ class GolemBridge extends FeedExpander
$img->src = $img->getAttribute('data-src-full');
}
foreach ($content->find('p, h1, h3, img[src*="."]') as $element) {
foreach ($content->find('p, h1, h2, h3, img[src*="."]') as $element) {
$item .= $element;
}