diff --git a/transport_accessibility/pt_map/templates/map.html b/transport_accessibility/pt_map/templates/map.html index cf62edf..4c8509e 100644 --- a/transport_accessibility/pt_map/templates/map.html +++ b/transport_accessibility/pt_map/templates/map.html @@ -178,9 +178,9 @@ } function importGTFS() { - stops = JSON.parse('{{ stops }}'); - routes = JSON.parse('{{ routes }}'); - timetable = JSON.parse('{{ timetable }}'); + stops = JSON.parse('{{ stops|safe }}'); + routes = JSON.parse('{{ routes|safe }}'); + timetable = JSON.parse('{{ timetable|safe }}'); alert("Import existing GTFS clicked"); // Logic to import existing GTFS would go here