about summary refs log tree commit diff
path: root/templates
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-04-15T22·25+0200
committerVincent Ambo <tazjin@gmail.com>2018-04-15T22·25+0200
commit72f6fa65fd4fe5ff9788a733ed3f53b18f9242ae (patch)
treeff65f52e985cec8724cca4277df551075ffa24b5 /templates
parentfc0b9d7fa5f73e47eccf63f4a73ff6efdbcb63c3 (diff)
fix(templates): Mark pre-escaped variables as 'safe'
Diffstat (limited to 'templates')
-rw-r--r--templates/search.html2
-rw-r--r--templates/thread.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/search.html b/templates/search.html
index 2254c97f0c25..35193fb61cd2 100644
--- a/templates/search.html
+++ b/templates/search.html
@@ -34,7 +34,7 @@
             {% for result in results -%}
             <a href="/thread/{{ result.thread_id }}#post-{{ result.post_id }}" class="list-group-item list-group-item-action flex-column align-items-start">
               <div class="d-flex w-100 justify-content-between">
-                <p class="mb-1">{{ result.headline }}</p>
+                <p class="mb-1">{{ result.headline | safe }}</p>
                 <small class="float-right text-muted"><i>(Posted in '{{ result.title }}' by {{ result.author }})</i></small>
               </div>
             </a>
diff --git a/templates/thread.html b/templates/thread.html
index 826046ce15aa..7c0f852f4cd0 100644
--- a/templates/thread.html
+++ b/templates/thread.html
@@ -33,7 +33,7 @@
             <strong>{{ post.author_name }}</strong>
           </div>
 
-          <div class="align-self-stretch">{{ post.body }}</div>
+          <div class="align-self-stretch">{{ post.body | safe }}</div>
 
           <div class="d-inline-flex flex-column align-items-end ml-auto">
             <a href="/thread/{{ id }}#post-{{ post.id }}" class="ml-auto">