X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bkmk_objects.py;h=e7d1d623b87d2c39d226b6968364bab176f62900;hb=2b55be0b7b45c1b841c57856911f708e3962491b;hp=cb6530369fa8c20d03619875dc08162933825766;hpb=af6a6f6d598d26de82fec73392aef29c06215159;p=bookmarks_db.git diff --git a/bkmk_objects.py b/bkmk_objects.py index cb65303..e7d1d62 100644 --- a/bkmk_objects.py +++ b/bkmk_objects.py @@ -1,7 +1,7 @@ """ Objects to represent bookmarks.html structure - Written by Oleg BroytMann. Copyright (C) 2000-2007 PhiloSoft Design. + Written by Oleg Broytman. Copyright (C) 2000-2007 PhiloSoft Design. """ import os, cgi @@ -172,6 +172,11 @@ def break_tree(linear): def quote_title(title): if BKMK_FORMAT == "MOZILLA": - #title = cgi.escape(title, 1).replace("'", "'") title = title.replace("'", "'") return title + +def unquote_title(title): + if BKMK_FORMAT == "MOZILLA": + from HTMLParser import HTMLParser + title = HTMLParser().unescape(title.replace("&", '&')) + return title