Skip to content
Snippets Groups Projects

More HTML tags for Election description

Merged jan.bednarik requested to merge test into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -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,
)
Loading