aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-03-04 20:02:45 +0800
committerGitHub <noreply@github.com>2024-03-04 12:02:45 +0000
commitdae7f1ebdbe19620f40e110b285f7c0ecd0bb33b (patch)
treede769b87f498ff4e2ee87828adcc2ea5da8ae5e4 /docs
parente91733468ef726fc9365aa4820cdd5f2ddfdaa23 (diff)
downloadgitea-dae7f1ebdbe19620f40e110b285f7c0ecd0bb33b.tar.gz
gitea-dae7f1ebdbe19620f40e110b285f7c0ecd0bb33b.zip
Remove unnecessary SanitizeHTML from code (#29575)
* "mail/issue/default.tmpl": the body is rendered by backend `markdown.RenderString() HTML`, it has been already sanitized * "repo/settings/webhook/base_list.tmpl": "Description" is prepared by backend `ctx.Tr`, it doesn't need to be sanitized
Diffstat (limited to 'docs')
-rw-r--r--docs/content/administration/mail-templates.en-us.md2
-rw-r--r--docs/content/administration/mail-templates.zh-cn.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/administration/mail-templates.en-us.md b/docs/content/administration/mail-templates.en-us.md
index 0154fe55d0..4026b89975 100644
--- a/docs/content/administration/mail-templates.en-us.md
+++ b/docs/content/administration/mail-templates.en-us.md
@@ -224,7 +224,7 @@ Please check [Gitea's logs](administration/logging-config.md) for error messages
{{if not (eq .Body "")}}
<h3>Message content</h3>
<hr>
- {{.Body | SanitizeHTML}}
+ {{.Body}}
{{end}}
</p>
<hr>
diff --git a/docs/content/administration/mail-templates.zh-cn.md b/docs/content/administration/mail-templates.zh-cn.md
index e8c2817336..3c7c2a9397 100644
--- a/docs/content/administration/mail-templates.zh-cn.md
+++ b/docs/content/administration/mail-templates.zh-cn.md
@@ -207,7 +207,7 @@ _主题_ 和 _邮件正文_ 由 [Golang的模板引擎](https://go.dev/pkg/text/
{{if not (eq .Body "")}}
<h3>消息内容:</h3>
<hr>
- {{.Body | SanitizeHTML}}
+ {{.Body}}
{{end}}
</p>
<hr>