links: Rename defaultImageSrcTo to defaultLinkTo
This function not only fixes image sources, but also anchors
This commit is contained in:
parent
cf7da1d41c
commit
16bdf6b204
3 changed files with 3 additions and 3 deletions
lib
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue