From 90f90f428a56fb92625267fcb9c2456b6de798a2 Mon Sep 17 00:00:00 2001 From: Christian Lawson-Perfect Date: Mon, 29 Jun 2020 11:03:38 +0100 Subject: [PATCH] don't double escape discussion subjects This uses triple curly braces around discussion subjects in the mustache templates to avoid double-escaping HTML entities, since format_string also escapes. fixes #56 --- templates/discussion_list.mustache | 2 +- templates/question.mustache | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/discussion_list.mustache b/templates/discussion_list.mustache index 65280550fd5..5807ddb4369 100644 --- a/templates/discussion_list.mustache +++ b/templates/discussion_list.mustache @@ -183,7 +183,7 @@ {{/canviewdiscussions}} - {{ subjecttext }} + {{{ subjecttext }}} diff --git a/templates/question.mustache b/templates/question.mustache index 80a7df4c2e2..4c074d281f9 100644 --- a/templates/question.mustache +++ b/templates/question.mustache @@ -53,7 +53,7 @@ {{#isfirstpost}} {{! The subject. }}
- {{ subject }} + {{{ subject }}}
{{/isfirstpost}} @@ -142,4 +142,4 @@ - \ No newline at end of file +