Commits

Anonymous committed 1ab157c

removed unnecessary dubble escaping of html, disabled
escaping of xhtml

Comments (0)

Files changed (1)

webhelpers/feedgenerator.py

         # Summary.
         if item['description'] is not None:
             if not self.feed['contains_xhtml']:
-                summary = html_escape(item['description'])
-                handler.addQuickElement(u"summary", summary, {u"type": u"html"})
+                handler.addQuickElement(u"summary", item['description'],
+                                        {u"type": u"html"})
             else:
                 handler.startElement('summary', {'type': 'xhtml'})
                 handler.startPrefixMapping(None, self.xhtml_namespace)
                 handler.startElementNS((self.xhtml_namespace, 'div'), None, {})
-                handler.characters(item['description'])
+                handler.ignorableWhitespace(item['description'])
                 handler.endElementNS((self.xhtml_namespace, 'div'), None)
                 handler.endPrefixMapping(None)
                 handler.endElement('summary')