aboutsummaryrefslogtreecommitdiff
path: root/lib/html.php
diff options
context:
space:
mode:
authorGravatar logmanoriginal <logmanoriginal@users.noreply.github.com> 2017-02-18 13:41:45 +0100
committerGravatar logmanoriginal <logmanoriginal@users.noreply.github.com> 2017-02-18 13:41:45 +0100
commit16bdf6b204e74fb1a8b2594e767206f8294d9df6 (patch)
treef284de78a22e2ab1fa8c50db097bf1d1e6f1527c /lib/html.php
parentcf7da1d41ca50ee9c772a469a83b1164da1c88cc (diff)
downloadrss-bridge-16bdf6b204e74fb1a8b2594e767206f8294d9df6.tar.gz
rss-bridge-16bdf6b204e74fb1a8b2594e767206f8294d9df6.tar.zst
rss-bridge-16bdf6b204e74fb1a8b2594e767206f8294d9df6.zip
links: Rename defaultImageSrcTo to defaultLinkTo
This function not only fixes image sources, but also anchors
Diffstat (limited to 'lib/html.php')
-rw-r--r--lib/html.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/html.php b/lib/html.php
index 8eb0deb3..d5f66676 100644
--- a/lib/html.php
+++ b/lib/html.php
@@ -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