mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-09 10:06:33 +02:00
links: Rename defaultImageSrcTo to defaultLinkTo
This function not only fixes image sources, but also anchors
This commit is contained in:
@@ -16,7 +16,7 @@ class AcrimedBridge extends FeedExpander {
|
||||
|
||||
$articlePage = getSimpleHTMLDOM($newsItem->link);
|
||||
$article = sanitize($articlePage->find('article.article1', 0)->innertext);
|
||||
$article = defaultImageSrcTo($article, static::URI);
|
||||
$article = defaultLinkTo($article, static::URI);
|
||||
$item['content'] = $article;
|
||||
|
||||
return $item;
|
||||
|
Reference in New Issue
Block a user