Escape Beitragstitel
This commit is contained in:
parent
53432ec648
commit
e22b9c11af
3
bot.py
3
bot.py
@ -4,6 +4,7 @@
|
|||||||
# RSS Bot
|
# RSS Bot
|
||||||
# Python 3 required
|
# Python 3 required
|
||||||
|
|
||||||
|
import html
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
from configparser import ConfigParser
|
from configparser import ConfigParser
|
||||||
@ -330,7 +331,7 @@ def check_rss(bot, job):
|
|||||||
if not 'title' in v2:
|
if not 'title' in v2:
|
||||||
title = 'Kein Titel'
|
title = 'Kein Titel'
|
||||||
else:
|
else:
|
||||||
title = remove_tags(v2.title).lstrip()
|
title = html.escape(remove_tags(v2.title).lstrip())
|
||||||
if not 'link' in v2:
|
if not 'link' in v2:
|
||||||
link = feed_data.feed.link
|
link = feed_data.feed.link
|
||||||
link_name = link
|
link_name = link
|
||||||
|
Reference in New Issue
Block a user