aboutsummaryrefslogtreecommitdiffstats
path: root/mod/parse_url.php
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2011-09-05 21:05:24 +0200
committerfabrixxm <fabrix.xm@gmail.com>2011-09-05 21:05:24 +0200
commit2f5a34ad1791f01cacb3b86c11501f0e11c67df4 (patch)
treedd9242b14387c833346f4172e3f190659db56ff7 /mod/parse_url.php
parent5ec4a4e6deb5d28cbfab54093f8b4180912738d4 (diff)
parent08e54234e30c10e3130b7d71caba9fd43e3593e3 (diff)
downloadvolse-hubzilla-2f5a34ad1791f01cacb3b86c11501f0e11c67df4.tar.gz
volse-hubzilla-2f5a34ad1791f01cacb3b86c11501f0e11c67df4.tar.bz2
volse-hubzilla-2f5a34ad1791f01cacb3b86c11501f0e11c67df4.zip
Merge branch 'newui' of github.com:fabrixxm/friendika into newui
Diffstat (limited to 'mod/parse_url.php')
-rw-r--r--mod/parse_url.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/mod/parse_url.php b/mod/parse_url.php
index 9bb0bc464..79c336ddc 100644
--- a/mod/parse_url.php
+++ b/mod/parse_url.php
@@ -13,7 +13,7 @@ function parse_url_content(&$a) {
$text = null;
- $template = "<br /><a href=\"%s\" >%s</a>%s<br />";
+ $template = "<br /><a class=\"bookmark\" href=\"%s\" >%s</a>%s<br />";
$arr = array('url' => $url, 'text' => '');
@@ -119,6 +119,12 @@ function parse_url_content(&$a) {
$text = '<br /><br /><blockquote>' . $text . '</blockquote><br />';
}
- 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();
}