diff options
author | Joel da Rosa <webjoel@users.noreply.github.com> | 2018-07-19 12:25:17 -0300 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-07-19 18:25:17 +0300 |
commit | 91373901f68b67e7050bed7fca2228615703f868 (patch) | |
tree | 64b26de1cb5210c1eaa1578b23502eb2ca74b79d | |
parent | fe78154895d8809c157ed583992edf5d6f66d5dd (diff) | |
download | gitea-91373901f68b67e7050bed7fca2228615703f868.tar.gz gitea-91373901f68b67e7050bed7fca2228615703f868.zip |
Prevent html entity escaping (#4471)
-rw-r--r-- | templates/repo/branch/list.tmpl | 2 | ||||
-rw-r--r-- | 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 e4bbc13998..2ef96defa2 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 6edc34207b..fa4b989caa 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> |