]> git.phdru.name Git - bookmarks_db.git/blobdiff - bkmk_objects.py
Skip Firefox SmartBookmarks.
[bookmarks_db.git] / bkmk_objects.py
index cb6530369fa8c20d03619875dc08162933825766..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,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