aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauris BH2018-07-21 01:39:40 +0300
committertechknowlogick2018-07-20 18:39:40 -0400
commit5da301bb703a0de08eda0be5f2a624cf77ee793f (patch)
tree33dec90a546d2bad90ca881311469251083113ad
parent3e191935c87f0a3e91082d642844b39dbab48283 (diff)
Prevent html entity escaping (#4471) (#4485)
-rw-r--r--templates/repo/branch/list.tmpl2
-rw-r--r--templates/repo/issue/view_content.tmpl2
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"}} <span class="branch-name"></span>
</div>
<div class="content">
- <p>{{.i18n.Tr "repo.branch.delete_desc"}}</p>
+ <p>{{.i18n.Tr "repo.branch.delete_desc" | Str2html}}</p>
</div>
{{template "base/delete_modal_actions" .}}
</div>
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl
index 5271fcb17..2c6aea309 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 }}
</div>
<div class="content">
- <p>{{.i18n.Tr "repo.branch.delete_desc"}}</p>
+ <p>{{.i18n.Tr "repo.branch.delete_desc" | Str2html}}</p>
</div>
{{template "base/delete_modal_actions" .}}
</div>