aboutsummaryrefslogtreecommitdiff
path: root/templates/status.tmpl
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2021-04-23 10:19:09 +0000
committerr <r@freesoftwareextremist.com>2021-04-23 10:19:09 +0000
commit469f2d1d25f0b266abb15eab410131ebe1856aad (patch)
tree9d43be7fd30af12d186e5a54adf2ee9228f3243b /templates/status.tmpl
parentbd74cb50e7e7be61f88687bc2d5f7ac63b45ea70 (diff)
downloadbloat-469f2d1d25f0b266abb15eab410131ebe1856aad.tar.gz
bloat-469f2d1d25f0b266abb15eab410131ebe1856aad.zip
Fix HTML escaping
Diffstat (limited to 'templates/status.tmpl')
-rw-r--r--templates/status.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/status.tmpl b/templates/status.tmpl
index d6bfedf..7dcc0b6 100644
--- a/templates/status.tmpl
+++ b/templates/status.tmpl
@@ -88,7 +88,7 @@
{{end}}
</div>
{{if .Content}}
- <div class="status-content"> {{StatusContentFilter .SpoilerText .Content .Emojis .Mentions}} </div>
+ <div class="status-content"> {{StatusContentFilter (html .SpoilerText) .Content .Emojis .Mentions}} </div>
{{end}}
{{if .MediaAttachments}}
<div class="status-media-container">
@@ -153,12 +153,12 @@
{{range $i, $o := .Poll.Options}}
<div class="poll-option">
{{if (or $s.Poll.Expired $s.Poll.Voted)}}
- <div> {{EmojiFilter $o.Title $s.Emojis}} - {{$o.VotesCount}} votes </div>
+ <div> {{EmojiFilter $o.Title $s.Emojis | html}} - {{$o.VotesCount}} votes </div>
{{else}}
<input type="{{if $s.Poll.Multiple}}checkbox{{else}}radio{{end}}" name="choices"
id="poll-{{$s.ID}}-{{$i}}" value="{{$i}}">
<label for="poll-{{$s.ID}}-{{$i}}">
- {{EmojiFilter $o.Title $s.Emojis}}
+ {{EmojiFilter $o.Title $s.Emojis | html}}
</label>
{{end}}
</div>