From 7a6ca84b92650f82c385ed429dc64d78175f872a Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Thu, 21 Sep 2017 11:25:54 +0200 Subject: [PATCH 1/2] Ersetze < und > selbst, da html.escape() Probleme macht --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index c8bb81a..0d1ef05 100644 --- a/bot.py +++ b/bot.py @@ -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('<', '<').replace('>', '>') if 'link' not in entry: post_link = entry.link link_name = post_link From 4bf64b3f0f698f399e47017277da0b4a61b024bf Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Thu, 21 Sep 2017 11:30:53 +0200 Subject: [PATCH 2/2] Falsches "Link", wenn kein Beitragslink existiert... --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 0d1ef05..2c9377e 100644 --- a/bot.py +++ b/bot.py @@ -262,7 +262,7 @@ def check_feed(bot, key): post_title = utils.remove_html_tags(entry['title']).strip() post_title = post_title.replace('<', '<').replace('>', '>') if 'link' not in entry: - post_link = entry.link + post_link = data.link link_name = post_link else: post_link = entry.link