From e22b9c11af392268f6e62d053efa9946342a8eba Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Wed, 20 Sep 2017 18:26:31 +0200 Subject: [PATCH] Escape Beitragstitel --- bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 7f82869..6946e3d 100644 --- a/bot.py +++ b/bot.py @@ -4,6 +4,7 @@ # RSS Bot # Python 3 required +import html import logging import re from configparser import ConfigParser @@ -330,7 +331,7 @@ def check_rss(bot, job): if not 'title' in v2: title = 'Kein Titel' else: - title = remove_tags(v2.title).lstrip() + title = html.escape(remove_tags(v2.title).lstrip()) if not 'link' in v2: link = feed_data.feed.link link_name = link