feeds: fix \u2019 -> '
encoding in feed fields
This commit is contained in:
@@ -41,7 +41,10 @@ def clean_item(item: dict) -> dict:
|
||||
# clean up characters for better printability
|
||||
for k in "title", "site_name", "description":
|
||||
if k not in item: continue
|
||||
item[k] = item[k].replace("\u2013", "-")
|
||||
item[k] = item[k] \
|
||||
.replace("\u2013", "-") \
|
||||
.replace("\u2019", "'") \
|
||||
|
||||
return item
|
||||
|
||||
def try_load_existing_feed(path_: str) -> dict:
|
||||
|
Reference in New Issue
Block a user