From 0e0527456edf836b1e77b71f4ac1f3412b6ab08a Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 30 Sep 2024 00:21:39 -0700 Subject: [PATCH] Don't use SafeHTML --- templates/repo/issue/view_title.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/issue/view_title.tmpl b/templates/repo/issue/view_title.tmpl index 7c9db55e31..2dcf903099 100644 --- a/templates/repo/issue/view_title.tmpl +++ b/templates/repo/issue/view_title.tmpl @@ -124,8 +124,8 @@ {{ctx.Locale.TrN .Issue.NumComments "repo.issues.num_comments_1" "repo.issues.num_comments" .Issue.NumComments}} {{if .MaybeFixed}} - {{$fixedStr := printf `#%d` .MaybeFixed.Issue.Link .MaybeFixed.Index}} - · {{ctx.Locale.Tr "repo.issues.maybefixed" ($fixedStr|SafeHTML)}} + {{$fixedStr := HTMLFormat `#%d` .MaybeFixed.Issue.Link .MaybeFixed.Index}} + · {{ctx.Locale.Tr "repo.issues.maybefixed" $fixedStr}} {{end}} {{end}}