home · contact · privacy
Fix "raw" view being autoescaped into garbage.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 26 Jan 2025 10:40:16 +0000 (11:40 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 26 Jan 2025 10:40:16 +0000 (11:40 +0100)
templates/_macros.tmpl

index c1a9a40cc1eafc316baa6d689071ad45baef2ffa..850f4c5cfb53d6ee4c3855ee95c1e08b30e0a492 100644 (file)
@@ -24,9 +24,9 @@ td.invalid, tr.warning td.invalid { background-color: #ff0000; }
   {% if raw %}
     <td{% if dat_line.error %} class="invalid"{% endif %}>
     {% if dat_line.is_intro %}
-      <a href="/booking/{{dat_line.booking_id}}"/>{{dat_line.raw_nbsp}}</a>
+      <a href="/booking/{{dat_line.booking_id}}"/>{{dat_line.raw_nbsp|safe}}</a>
     {% else %}
-      {{dat_line.raw_nbsp}}
+      {{dat_line.raw_nbsp|safe}}
     {% endif %}
     </td>
   {% else %}