"""
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
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