Ersetze < und > selbst, da html.escape() Probleme macht

This commit is contained in:
Andreas Bielawski 2017-09-21 11:25:54 +02:00
parent 6361b7f374
commit 7a6ca84b92

3
bot.py
View File

@ -259,7 +259,8 @@ def check_feed(bot, key):
if 'title' not in entry:
post_title = 'Kein Titel'
else:
post_title = html.escape(utils.remove_html_tags(entry['title']).strip())
post_title = utils.remove_html_tags(entry['title']).strip()
post_title = post_title.replace('<', '&lt;').replace('>', '&gt;')
if 'link' not in entry:
post_link = entry.link
link_name = post_link