From e3f4427567366bf1e4a8aef8d839a66b79e47de9 Mon Sep 17 00:00:00 2001 From: Bryan Bonvallet Date: Thu, 19 Dec 2013 19:19:30 -0500 Subject: [PATCH] fix sanitize_html to write out HTML instead of repr for #160 --- karmaworld/apps/notes/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1