From: kaliko Date: Sat, 15 Nov 2014 15:57:22 +0000 (+0100) Subject: Fixed html escape characters in Feeds X-Git-Tag: 0.1.0~42 X-Git-Url: https://git.kaliko.me/?p=sid.git;a=commitdiff_plain;h=f0c5210d24a5b4ffd71f4280fe8d40ff6ca3b742 Fixed html escape characters in Feeds --- diff --git a/sid/feeds.py b/sid/feeds.py index ae07005..b3dd19f 100644 --- a/sid/feeds.py +++ b/sid/feeds.py @@ -161,9 +161,11 @@ class Feeds(Plugin): if 'last' in args: self.send('Last feeds check: %s' % self.th_mon.last_check) return - html = ['{1}'.format(u, u[7:]) for u in Feeds.FEEDS] + html = ['{1}'.format(html_escape(u), + html_escape(u[7:]) + ) for u in Feeds.FEEDS] msg = { 'mbody': 'Feeds:\n' + '\n'.join(Feeds.FEEDS), - 'mhtml': 'Feeds:
' + '
'.join(html) + 'mhtml': 'Feeds:
' + '
'.join(html), } self.send(msg)