diff --git a/pygeoapi/templates/collections/items/index.html b/pygeoapi/templates/collections/items/index.html index 7fade3d..5fb3184 100644 --- a/pygeoapi/templates/collections/items/index.html +++ b/pygeoapi/templates/collections/items/index.html @@ -127,7 +127,7 @@ attribution: '{{ config['server']['map']['attribution'] }}' } )); - var geojson_data = {{ data['features'] | to_json }}; + var geojson_data = {{ data['features'] | to_json | safe }}; var items = new L.GeoJSON(geojson_data, { onEachFeature: function (feature, layer) { var url = '{{ data['items_path'] }}/' + feature.id + '?f=html'; diff --git a/pygeoapi/templates/collections/items/item.html b/pygeoapi/templates/collections/items/item.html index df0aec3..244f60a 100644 --- a/pygeoapi/templates/collections/items/item.html +++ b/pygeoapi/templates/collections/items/item.html @@ -127,7 +127,7 @@ attribution: '{{ config['server']['map']['attribution'] }}' } )); - var geojson_data = {{ data |to_json }}; + var geojson_data = {{ data | to_json | safe }}; var items = new L.GeoJSON(geojson_data); map.addLayer(items);