From 5257cfe2c85b21f12f8e209579a66a32b7e635ea Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 13 Feb 2021 21:48:24 +0000 Subject: [PATCH] Remove html from RSS feed titles --- newswire.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/newswire.py b/newswire.py index 29abb2428..29e24e3b7 100644 --- a/newswire.py +++ b/newswire.py @@ -302,6 +302,7 @@ def _xml2StrToDict(baseDir: str, domain: str, xmlStr: str, continue title = rssItem.split('')[1] title = _removeCDATA(title.split('')[0]) + title = removeHtml(title) description = '' if '' in rssItem and '' in rssItem: description = rssItem.split('')[1] @@ -388,6 +389,7 @@ def _xml1StrToDict(baseDir: str, domain: str, xmlStr: str, continue title = rssItem.split('')[1] title = _removeCDATA(title.split('')[0]) + title = removeHtml(title) description = '' if '' in rssItem and '' in rssItem: description = rssItem.split('')[1] @@ -462,6 +464,7 @@ def _atomFeedToDict(baseDir: str, domain: str, xmlStr: str, continue title = atomItem.split('')[1] title = _removeCDATA(title.split('')[0]) + title = removeHtml(title) description = '' if '' in atomItem and '' in atomItem: description = atomItem.split('')[1]