From 91373901f68b67e7050bed7fca2228615703f868 Mon Sep 17 00:00:00 2001 From: Joel da Rosa Date: Thu, 19 Jul 2018 12:25:17 -0300 Subject: [PATCH] Prevent html entity escaping (#4471) --- templates/repo/branch/list.tmpl | 2 +- templates/repo/issue/view_content.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index e4bbc1399..2ef96defa 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -72,7 +72,7 @@ {{.i18n.Tr "repo.branch.delete_html"}}
-

{{.i18n.Tr "repo.branch.delete_desc"}}

+

{{.i18n.Tr "repo.branch.delete_desc" | Str2html}}

{{template "base/delete_modal_actions" .}} diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 6edc34207..fa4b989ca 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -137,7 +137,7 @@ {{.i18n.Tr "repo.branch.delete" .HeadTarget }}
-

{{.i18n.Tr "repo.branch.delete_desc"}}

+

{{.i18n.Tr "repo.branch.delete_desc" | Str2html}}

{{template "base/delete_modal_actions" .}}