diff --git a/newswire.py b/newswire.py index 3ccbeb554..6eafec39e 100644 --- a/newswire.py +++ b/newswire.py @@ -778,7 +778,8 @@ def _xml2str_to_dict(base_dir: str, domain: str, xml_str: str, description = '' if '' in rss_item and '' in rss_item: description = rss_item.split('')[1] - description = unescaped_text(description.split('')[0]) + description = description.split('')[0] + description = unescaped_text(description) description = remove_html(description) else: if '' in rss_item and \ @@ -888,7 +889,8 @@ def _xml1str_to_dict(base_dir: str, domain: str, xml_str: str, description = '' if '' in rss_item and '' in rss_item: description = rss_item.split('')[1] - description = unescaped_text(description.split('')[0]) + description = description.split('')[0] + description = unescaped_text(description) description = remove_html(description) else: if '' in rss_item and \