#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
"""
import sys
-from bkmk_objects import make_linear, quote_title
+from bkmk_objects import make_linear, quote_title, unquote_title
def run():
continue
if hasattr(object, "real_title"):
- quoted_title = quote_title(object.real_title)
- if object.name <> quoted_title:
+ quoted_title = unquote_title(quote_title(object.real_title))
+ unquoted_name = unquote_title(object.name)
+ if unquote_title(object.name) <> quoted_title:
print object.href
- print object.name
+ print unquoted_name
print quoted_title
print
else: