fix sanitize_html to write out HTML instead of repr for #160
authorBryan Bonvallet <btbonval@gmail.com>
Fri, 20 Dec 2013 00:19:30 +0000 (19:19 -0500)
committerBryan Bonvallet <btbonval@gmail.com>
Fri, 20 Dec 2013 00:19:30 +0000 (19:19 -0500)
karmaworld/apps/notes/models.py

index cc7a262991ca8e20089dcd55de85e3d3611760a1..47b95c8de436e81432953d66bad2db71f2dda16c 100644 (file)
@@ -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)