diff --git a/htroot/xml/bookmarks/xbel/xbel.java b/htroot/xml/bookmarks/xbel/xbel.java index d780ece92..e4904b017 100644 --- a/htroot/xml/bookmarks/xbel/xbel.java +++ b/htroot/xml/bookmarks/xbel/xbel.java @@ -9,6 +9,7 @@ import de.anomic.plasma.plasmaSwitchboard; import de.anomic.server.serverDate; import de.anomic.server.serverObjects; import de.anomic.server.serverSwitch; +import de.anomic.data.htmlTools; public class xbel { @@ -68,7 +69,7 @@ public class xbel { if(fn.startsWith(root)){ prop.put("xbel_"+count+"_elements", ""); count++; - prop.put("xbel_"+count+"_elements", ""+fn.replaceFirst(root+"/*","")+""); + prop.put("xbel_"+count+"_elements", "" + htmlTools.encodeUnicode2xml(fn.replaceFirst(root+"/*","")) + ""); count++; Iterator bit=switchboard.bookmarksDB.getBookmarksIterator(fn, isAdmin); count = print_XBEL(bit, count); @@ -90,17 +91,21 @@ public class xbel { while(bit.hasNext()){ bookmark=switchboard.bookmarksDB.getBookmark(bit.next()); date=new Date(bookmark.getTimeStamp()); - prop.put("xbel_"+count+"_elements", ""); + prop.put("xbel_"+count+"_elements", ""); count++; prop.put("xbel_"+count+"_elements", ""); count++; - prop.putHTML("xbel_"+count+"_elements", bookmark.getTitle(),true); + prop.putHTML("xbel_"+count+"_elements", bookmark.getTitle(), true); count++; prop.put("xbel_"+count+"_elements", ""); count++; prop.put("xbel_"+count+"_elements", ""); count++; - prop.put("xbel_"+count+"_elements", ""); + prop.put("xbel_"+count+"_elements", ""); count++; prop.put("xbel_"+count+"_elements", ""); count++; @@ -108,7 +113,7 @@ public class xbel { count++; prop.put("xbel_"+count+"_elements", ""); count++; - prop.putHTML("xbel_"+count+"_elements", bookmark.getDescription(),true); + prop.putHTML("xbel_"+count+"_elements", bookmark.getDescription(), true); count++; prop.put("xbel_"+count+"_elements", ""); count++;