diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-04-15T22·25+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2018-04-15T22·25+0200 |
commit | 72f6fa65fd4fe5ff9788a733ed3f53b18f9242ae (patch) | |
tree | ff65f52e985cec8724cca4277df551075ffa24b5 /templates | |
parent | fc0b9d7fa5f73e47eccf63f4a73ff6efdbcb63c3 (diff) |
fix(templates): Mark pre-escaped variables as 'safe'
Diffstat (limited to 'templates')
-rw-r--r-- | templates/search.html | 2 | ||||
-rw-r--r-- | templates/thread.html | 2 |
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"> |