mirror of
https://github.com/zvx-echo6/central.git
synced 2026-05-21 18:14:44 +02:00
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:
parent
1b404d02b5
commit
6b95ef97cb
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for event in events %}
|
{% for event in events %}
|
||||||
<tr data-row-idx="{{ loop.index0 }}"
|
<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.time }}</td>
|
||||||
<td>{{ event.adapter }}</td>
|
<td>{{ event.adapter }}</td>
|
||||||
<td>{{ event.category }}</td>
|
<td>{{ event.category }}</td>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue