X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fparse_url.php;h=79c336ddccad66f84b5869778e5d33e099aed4ed;hb=f17d91844f9825c3effcf47c5b65b645b15939c5;hp=46c6b46e97998e3db59b542d11b3b15b937c8fe4;hpb=1d35d1e5a1c807ea391d7958657b13a6bb471a0b;p=friendica.git diff --git a/mod/parse_url.php b/mod/parse_url.php index 46c6b46e97..79c336ddcc 100644 --- a/mod/parse_url.php +++ b/mod/parse_url.php @@ -13,7 +13,7 @@ function parse_url_content(&$a) { $text = null; - $template = "
%s%s
"; + $template = "
%s%s
"; $arr = array('url' => $url, 'text' => ''); @@ -116,9 +116,15 @@ function parse_url_content(&$a) { } if(strlen($text)) { - $text = '

' . $text; + $text = '

' . $text . '

'; } - echo sprintf($template,$url,($title) ? $title : $url,$text); + $title = str_replace("\n",'',$title); + + $result = sprintf($template,$url,($title) ? $title : $url,$text); + + logger('parse_url: returns: ' . $result); + + echo $result; killme(); }