Diff of /plugin.program.super.favourites/favourite.py [52c189] .. [0dea54]  Maximize  Restore

Switch to side-by-side view

--- a/plugin.program.super.favourites/favourite.py
+++ b/plugin.program.super.favourites/favourite.py
@@ -34,13 +34,22 @@
     }
 
 def escape(text):
-    return "".join(html_escape_table.get(c,c) for c in text)
+    return ''.join(html_escape_table.get(c,c) for c in text)
 
 
 def unescape(text):
+    #return text
+    text = text.replace('&',  '&')
+    text = text.replace('"', '"')
+    text = text.replace(''', '\'')
+    text = text.replace('>',   '>')
+    text = text.replace('&lt;',   '<')
+    return text
+
     try:
         return HTMLParser.HTMLParser().unescape(text)
-    except:
+    except Exception, e:
+        print str(e)
         pass
 
     newText    = ''
@@ -87,6 +96,7 @@
         thumb = thumb.replace('&_quot_;', '"')
         cmd   = cmd.replace(  '&_quot_;', '"')
 
+
         if len(cmd) > 0:
             items.append([name, thumb, cmd])
 

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks