Skip to content

Commit 0e05274

Browse files
committed
Don't use SafeHTML
1 parent e49445b commit 0e05274

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/repo/issue/view_title.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@
124124
{{ctx.Locale.TrN .Issue.NumComments "repo.issues.num_comments_1" "repo.issues.num_comments" .Issue.NumComments}}
125125
</span>
126126
{{if .MaybeFixed}}
127-
{{$fixedStr := printf `<a href="%s">#%d</a>` .MaybeFixed.Issue.Link .MaybeFixed.Index}}
128-
· <span>{{ctx.Locale.Tr "repo.issues.maybefixed" ($fixedStr|SafeHTML)}}</span>
127+
{{$fixedStr := HTMLFormat `<a href="%s">#%d</a>` .MaybeFixed.Issue.Link .MaybeFixed.Index}}
128+
· <span>{{ctx.Locale.Tr "repo.issues.maybefixed" $fixedStr}}</span>
129129
{{end}}
130130
{{end}}
131131
</div>

0 commit comments

Comments
 (0)