Skip to content

Commit 90f90f4

Browse files
committedJun 29, 2020
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
1 parent eaf990b commit 90f90f4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎templates/discussion_list.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
{{/canviewdiscussions}}
184184

185185
<td class="topic starter">
186-
<a href="{{ subjectlink }}">{{ subjecttext }}</a>
186+
<a href="{{ subjectlink }}">{{{ subjecttext }}}</a>
187187
</td>
188188

189189
<td class="picture">

‎templates/question.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
{{#isfirstpost}}
5454
{{! The subject. }}
5555
<div class="subject" role="heading" aria-level="2">
56-
{{ subject }}
56+
{{{ subject }}}
5757
</div>
5858
{{/isfirstpost}}
5959

@@ -142,4 +142,4 @@
142142
143143
</div>
144144
</div>
145-
</div>
145+
</div>

0 commit comments

Comments
 (0)