From: mensonge Date: Mon, 9 Feb 2009 11:16:02 +0000 (+0000) Subject: Interface fix: allow urls into bookmarks descriptions. X-Git-Tag: v0.94~125 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=31759556fb556c5a3c53914b28b6e8ef7b6c5231;p=semanticscuttle.git Interface fix: allow urls into bookmarks descriptions. git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@259 b3834d28-1941-0410-a4f8-b48e95affb8f --- diff --git a/templates/bookmarks.tpl.php b/templates/bookmarks.tpl.php index 182f65e..ff91cce 100644 --- a/templates/bookmarks.tpl.php +++ b/templates/bookmarks.tpl.php @@ -220,8 +220,11 @@ if($currenttag!= '') { if ($row['bDescription'] == '') { $bkDescription = '-'; } else { + // Improve description display (anchors, links, ...) $bkDescription = preg_replace('|\[\/.*?\]|', '', filter($row['bDescription'])); // remove final anchor $bkDescription = preg_replace('|\[(.*?)\]|', ' $1 ', $bkDescription); // highlight starting anchor + $bkDescription = preg_replace('@((http|https|ftp)://.*?)( |\r|$)@', '$1$3', $bkDescription); // make url clickable + } echo '
'. nl2br($bkDescription) ."
\n"; //if(!isset($hash)) {