mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove HTML tags from feed titles
This commit is contained in:
parent
02df6c77fa
commit
ffb187960f
@ -196,6 +196,8 @@ class Feed(object):
|
|||||||
self.added_articles.append(id)
|
self.added_articles.append(id)
|
||||||
|
|
||||||
title = item.get('title', _('Untitled article'))
|
title = item.get('title', _('Untitled article'))
|
||||||
|
if title.startswith('<'):
|
||||||
|
title = re.sub(r'<.+?>', '', title)
|
||||||
try:
|
try:
|
||||||
link = self.get_article_url(item)
|
link = self.get_article_url(item)
|
||||||
except:
|
except:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user