Fix opml export bug
authorYves Marcoz <ymarcoz@stromgarde.(none)>
Tue, 2 Feb 2010 00:00:17 +0000 (16:00 -0800)
committerYves Marcoz <ymarcoz@stromgarde.(none)>
Tue, 2 Feb 2010 00:00:17 +0000 (16:00 -0800)
src/opml.py

index 5d3ec90..7cbf169 100644 (file)
@@ -99,7 +99,8 @@ class ExportOpmlData():
         return opml_text
     
     def sanitize(self, text):
-        return text.encode('ascii', 'xmlcharrefreplace')
+       from cgi import escape
+        return escape(text).encode('ascii', 'xmlcharrefreplace')