From afb6ecd88d82357f71a1946aebd18be8b85a68b9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Bedna=C5=99=C3=ADk?= <jan.bednarik@gmail.com>
Date: Thu, 13 Jun 2024 22:44:26 +0200
Subject: [PATCH] More HTML tags for Election description

---
 helios/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helios/models.py b/helios/models.py
index c8cae97..8715f27 100644
--- a/helios/models.py
+++ b/helios/models.py
@@ -199,7 +199,7 @@ class Election(HeliosModel):
   @property
   def description_bleached(self):
     return bleach.clean(self.description,
-                        tags=bleach.ALLOWED_TAGS + ['p', 'h4', 'h5', 'h3', 'h2', 'br', 'u'],
+                        tags=bleach.ALLOWED_TAGS + ['p', 'h4', 'h5', 'h3', 'h2', 'br', 'u', 'table', 'tr', 'th', 'td', 'thead', 'tbody', 'tfoot', 's', 'del', 'strike', 'ins'],
                         strip=True,
                         strip_comments=True,
                         )
-- 
GitLab