Remove HTML tags from feed titles

This commit is contained in:
Kovid Goyal 2020-10-26 11:38:07 +05:30
parent 02df6c77fa
commit ffb187960f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -196,6 +196,8 @@ class Feed(object):
self.added_articles.append(id)
title = item.get('title', _('Untitled article'))
if title.startswith('<'):
title = re.sub(r'<.+?>', '', title)
try:
link = self.get_article_url(item)
except: