summaryrefslogtreecommitdiffstats
path: root/templates/repo/wiki
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/repo/wiki
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/repo/wiki')
-rw-r--r--templates/repo/wiki/view.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl
index f3b6be97cf..9fa05b5b5c 100644
--- a/templates/repo/wiki/view.tmpl
+++ b/templates/repo/wiki/view.tmpl
@@ -107,7 +107,7 @@
{{ctx.Locale.Tr "repo.wiki.delete_page_button"}}
</div>
<div class="content">
- <p>{{ctx.Locale.Tr "repo.wiki.delete_page_notice_1" ($title|Escape)}}</p>
+ <p>{{ctx.Locale.Tr "repo.wiki.delete_page_notice_1" $title}}</p>
</div>
{{template "base/modal_actions_confirm" .}}
</div>