Skip to content
Snippets Groups Projects
Commit afb6ecd8 authored by jan.bednarik's avatar jan.bednarik
Browse files

More HTML tags for Election description

parent 0d15b15c
No related branches found
No related tags found
1 merge request!40More HTML tags for Election description
Pipeline #18719 passed
...@@ -199,7 +199,7 @@ class Election(HeliosModel): ...@@ -199,7 +199,7 @@ class Election(HeliosModel):
@property @property
def description_bleached(self): def description_bleached(self):
return bleach.clean(self.description, 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=True,
strip_comments=True, strip_comments=True,
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment