diff --git a/been.njk b/been.njk index e3fdb14..5ab4e80 100644 --- a/been.njk +++ b/been.njk @@ -2,6 +2,7 @@ layout: layouts/been.njk title: Been permalink: /been/ +description: All past check-ins captured by this site via Micropub. withSidebar: true leafletMap: true --- @@ -39,8 +40,11 @@ leafletMap: true attribution: '© OpenStreetMap contributors', maxZoom: 19 }).addTo(map); + function escHtml(s) { + return String(s).replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"'); + } var markers = checkinPoints.map(function(p) { - var safeName = L.Util.escape(p.name); + var safeName = escHtml(p.name); var safeUrl = (p.url && p.url.indexOf('https://') === 0) ? p.url : ''; var popup = safeUrl ? '' + safeName + ''