Strip html tags in event archive
authorMagnus Hagander <magnus@hagander.net>
Sun, 30 Aug 2020 15:29:30 +0000 (17:29 +0200)
committerMagnus Hagander <magnus@hagander.net>
Sun, 30 Aug 2020 15:29:30 +0000 (17:29 +0200)
We were already doing this for news, but for some reason neglected to do
so for events, which made for some pretty messed up formatting in the
archives now and then. We should treat news and events the same...

templates/events/archive.html

index 6cd046b76d85b79eefbd6d59d8890f79948464ba..7332d59263f358adeaf61734e1d7f07c1bafb41a 100644 (file)
@@ -25,7 +25,7 @@ whatsoever.</em>
 <div>Location: <strong>{{event.locationstring}}</strong></div>
 {%if event.language%}<div>Language: <strong>{{event.language}}</strong></div>{%endif%}
 <div class="newseventwrap">
-{{event.summary|markdown:"safe"}}
+{{event.summary|markdown:"safe"|striptags}}
 </div>
 {%endfor%}
 {%if not archive%}