diff --git a/termfeed/feed.py b/termfeed/feed.py index eff098c..23649d8 100755 --- a/termfeed/feed.py +++ b/termfeed/feed.py @@ -103,9 +103,12 @@ def open_it(): return False def clean_txt(txt): - """clean txt from html tags""" - cleaned = re.sub(r'<.*?>', '', txt) + """clean txt from e.g. html tags""" + cleaned = re.sub(r'<.*?>', '', txt) # remove html cleaned = cleaned.replace('<', '<').replace('>', '>') # retain html code tags + cleaned = cleaned.replace('"', '"') + cleaned = cleaned.replace('’', "'") + cleaned = cleaned.replace(' ', ' ') # italized text return cleaned def _continue():