mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 07:37:27 +02:00
links: Rename defaultImageSrcTo to defaultLinkTo
This function not only fixes image sources, but also anchors
This commit is contained in:
@@ -278,7 +278,7 @@ $keptText = array()){
|
||||
return $htmlContent;
|
||||
}
|
||||
|
||||
function defaultImageSrcTo($content, $server){
|
||||
function defaultLinkTo($content, $server){
|
||||
foreach($content->find('img') as $image){
|
||||
if(strpos($image->src, 'http') === false
|
||||
&& strpos($image->src, '//') === false
|
||||
|
Reference in New Issue
Block a user