From 31759556fb556c5a3c53914b28b6e8ef7b6c5231 Mon Sep 17 00:00:00 2001 From: mensonge Date: Mon, 9 Feb 2009 11:16:02 +0000 Subject: [PATCH] Interface fix: allow urls into bookmarks descriptions. git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@259 b3834d28-1941-0410-a4f8-b48e95affb8f --- templates/bookmarks.tpl.php | 3 +++ 1 file changed, 3 insertions(+) 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)) {