From bd28fd5f9e7957ac969bcb3af1189e719525ca5c Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Sun, 6 Apr 2014 10:53:55 -0700 Subject: [PATCH] allow underline --- helios/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helios/models.py b/helios/models.py index b1ce74d..c59a089 100644 --- a/helios/models.py +++ b/helios/models.py @@ -192,7 +192,7 @@ class Election(HeliosModel): @property def description_bleached(self): - return bleach.clean(self.description, tags = bleach.ALLOWED_TAGS + ['p', 'h4', 'h5', 'h3', 'h2', 'br']) + return bleach.clean(self.description, tags = bleach.ALLOWED_TAGS + ['p', 'h4', 'h5', 'h3', 'h2', 'br', 'u']) @classmethod def get_featured(cls): -- GitLab