fix headline

This commit is contained in:
bkfox 2020-05-20 16:26:41 +02:00
parent 4c7b363aea
commit 1003ad315f

View File

@ -135,7 +135,7 @@ class Page(models.Model):
def headline(self):
if not self.content:
return ''
content = bleach.clean(self.content, strip=True)
content = bleach.clean(self.content, tags=[], strip=True)
headline = headline_re.search(content)
return mark_safe(headline.groupdict()['headline']) if headline else ''