From: Bryan Bonvallet Date: Fri, 20 Dec 2013 00:19:30 +0000 (-0500) Subject: fix sanitize_html to write out HTML instead of repr for #160 X-Git-Tag: release-20150131~376^2~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e3f4427567366bf1e4a8aef8d839a66b79e47de9;p=oweals%2Fkarmaworld.git fix sanitize_html to write out HTML instead of repr for #160 --- diff --git a/karmaworld/apps/notes/models.py b/karmaworld/apps/notes/models.py index cc7a262..47b95c8 100644 --- a/karmaworld/apps/notes/models.py +++ b/karmaworld/apps/notes/models.py @@ -199,7 +199,7 @@ class Note(Document): if a_tags > 1: #apply the add attribute function map(add_attribute_target, a_tags) - self.html = _html + self.html = tostring(_html) if save: self.save() return True, len(a_tags)