1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-24 16:44:28 +00:00

Don't use SafeHTML

This commit is contained in:
Lunny Xiao 2024-09-30 00:21:39 -07:00
parent e49445b17d
commit 0e0527456e
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -124,8 +124,8 @@
{{ctx.Locale.TrN .Issue.NumComments "repo.issues.num_comments_1" "repo.issues.num_comments" .Issue.NumComments}}
</span>
{{if .MaybeFixed}}
{{$fixedStr := printf `<a href="%s">#%d</a>` .MaybeFixed.Issue.Link .MaybeFixed.Index}}
· <span>{{ctx.Locale.Tr "repo.issues.maybefixed" ($fixedStr|SafeHTML)}}</span>
{{$fixedStr := HTMLFormat `<a href="%s">#%d</a>` .MaybeFixed.Issue.Link .MaybeFixed.Index}}
· <span>{{ctx.Locale.Tr "repo.issues.maybefixed" $fixedStr}}</span>
{{end}}
{{end}}
</div>