X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bkmk_objects.py;h=cde26d83019c8f26d33b3d9d7621864cfcf8ef39;hb=727bcde8fd3b119ece36121ac0a733cfd7c1dd3b;hp=cb6530369fa8c20d03619875dc08162933825766;hpb=af6a6f6d598d26de82fec73392aef29c06215159;p=bookmarks_db.git diff --git a/bkmk_objects.py b/bkmk_objects.py index cb65303..cde26d8 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,12 @@ 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("&", '&')) + title = title.replace("'", "'") + return title