]> git.phdru.name Git - bookmarks_db.git/blobdiff - bkmk_objects.py
Copyright 2010.
[bookmarks_db.git] / bkmk_objects.py
index 6cb12d933379e879b4f85904f76a3ac86ded9beb..e7d1d623b87d2c39d226b6968364bab176f62900 100644 (file)
@@ -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,5 +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