fix: remove double-escaping from data-geometry attribute

tojson already produces HTML-attribute-safe JSON. The extra |e filter
was double-escaping, causing JSON.parse to fail in the browser JS.
Switch to single-quoted attribute to avoid conflicts with JSON double
quotes.
This commit is contained in:
Matt Johnson 2026-05-18 17:08:35 +00:00
commit 6b95ef97cb

View file

@ -18,7 +18,7 @@
<tbody>
{% for event in events %}
<tr data-row-idx="{{ loop.index0 }}"
{% if event.geometry %}data-geometry="{{ event.geometry | tojson | e }}"{% endif %}>
{% if event.geometry %}data-geometry='{{ event.geometry | tojson }}'{% endif %}>
<td>{{ event.time }}</td>
<td>{{ event.adapter }}</td>
<td>{{ event.category }}</td>