summaryrefslogtreecommitdiffstats
path: root/templates/code/searchcombo.tmpl
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-02-25 22:02:20 +0800
committerGitHub <noreply@github.com>2024-02-25 14:02:20 +0000
commitd2f6588b66549b33adf8bac7044d03c89d668470 (patch)
tree7cc1109b7bd757ffd9e9e9cc2eb038b024290f3f /templates/code/searchcombo.tmpl
parentea164aba4b697aa08e4d20d896a8f318c09a6523 (diff)
downloadgitea-d2f6588b66549b33adf8bac7044d03c89d668470.tar.gz
gitea-d2f6588b66549b33adf8bac7044d03c89d668470.zip
Remove incorrect and unnecessary Escape from templates (#29394)
Follow #29165 * some of them are incorrect, which would lead to double escaping (eg: `(print (Escape $.RepoLink)`) * other of them are not necessary, because `Tr` handles strings&HTML automatically Suggest to review by "unified view": https://github.com/go-gitea/gitea/pull/29394/files?diff=unified&w=0
Diffstat (limited to 'templates/code/searchcombo.tmpl')
-rw-r--r--templates/code/searchcombo.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/code/searchcombo.tmpl b/templates/code/searchcombo.tmpl
index d256890918..d451bc0ad8 100644
--- a/templates/code/searchcombo.tmpl
+++ b/templates/code/searchcombo.tmpl
@@ -7,7 +7,7 @@
</div>
{{else if .SearchResults}}
<h3>
- {{ctx.Locale.Tr "explore.code_search_results" (.Keyword|Escape)}}
+ {{ctx.Locale.Tr "explore.code_search_results" .Keyword}}
</h3>
{{template "code/searchresults" .}}
{{else if .Keyword}}