diff --git a/layouts/shortcodes/leaflet-map.html b/layouts/shortcodes/leaflet-map.html
index 313c33e..3f624e2 100644
--- a/layouts/shortcodes/leaflet-map.html
+++ b/layouts/shortcodes/leaflet-map.html
@@ -137,7 +137,7 @@ Elevation profile options:
},
scale: false,
maximize: {
- enabled: {{ .Get "maximizable" | default "true" }},
+ enabled: {{ .Get "maximizable" | default "true" | safeJS }},
},
markers: [],
tracks: [],