Fixed html entities in rss titles.

This commit is contained in:
Jeremy Fincher 2003-11-21 19:07:14 +00:00
parent 10fe799033
commit 0cc2c2f49f

View File

@ -83,7 +83,7 @@ class RSS(callbacks.Privmsg):
self.lastRequest[url] = now self.lastRequest[url] = now
feed = self.cachedFeeds[url] feed = self.cachedFeeds[url]
headlines = [d['title'].strip().replace('\n', ' ') \ headlines = [utils.htmlToText(d['title'].strip())
for d in feed['items']] for d in feed['items']]
if not headlines: if not headlines:
irc.error(msg, 'Error grabbing RSS feed') irc.error(msg, 'Error grabbing RSS feed')