From 7e349fec302b40308835705381f0ff1d2c9f08ac Mon Sep 17 00:00:00 2001 From: endolith Date: Sun, 6 Nov 2022 22:19:44 -0500 Subject: [PATCH] Names are already URL-encoded, just not addresses? --- json2kml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/json2kml.py b/json2kml.py index 1f30c0b..f0262f0 100644 --- a/json2kml.py +++ b/json2kml.py @@ -39,9 +39,9 @@ for place in data["features"]: if place["type"] == "Feature": try: - name = html.escape(place["properties"]["Title"]) + name = place["properties"]["Title"] except KeyError: - name = html.escape(place["properties"]["name"]) + name = place["properties"]["name"] print(f'Parsing place "{name}"') lon = place["geometry"]["coordinates"][0]