getBookmarks( 0, null, $userservice->getCurrentUserId(), $tag, null, getSortOrder() ); //columns titles echo 'url;title;tags;description'; echo "\n"; foreach($bookmarks['bookmarks'] as $row) { if (is_null($row['bDescription']) || (trim($row['bDescription']) == '')) $description = ''; else $description = filter(str_replace(array("\r\n", "\n", "\r"),"", $row['bDescription']), 'xml'); $taglist = ''; if (count($row['tags']) > 0) { foreach($row['tags'] as $tag) $taglist .= convertTag($tag) .','; $taglist = substr($taglist, 0, -1); } else { $taglist = 'system:unfiled'; } echo '"'.filter($row['bAddress'], 'xml') .'";"'. filter($row['bTitle'], 'xml') .'";"'. filter($taglist, 'xml') .'";"'. $description .'"'; echo "\n"; } ?>