Skip to content

Commit 5da301b

Browse files
lafrikstechknowlogick
authored andcommitted
Prevent html entity escaping (#4471) (#4485)
1 parent 3e19193 commit 5da301b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/repo/branch/list.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
{{.i18n.Tr "repo.branch.delete_html"}} <span class="branch-name"></span>
7373
</div>
7474
<div class="content">
75-
<p>{{.i18n.Tr "repo.branch.delete_desc"}}</p>
75+
<p>{{.i18n.Tr "repo.branch.delete_desc" | Str2html}}</p>
7676
</div>
7777
{{template "base/delete_modal_actions" .}}
7878
</div>

templates/repo/issue/view_content.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
{{.i18n.Tr "repo.branch.delete" .HeadTarget }}
138138
</div>
139139
<div class="content">
140-
<p>{{.i18n.Tr "repo.branch.delete_desc"}}</p>
140+
<p>{{.i18n.Tr "repo.branch.delete_desc" | Str2html}}</p>
141141
</div>
142142
{{template "base/delete_modal_actions" .}}
143143
</div>

0 commit comments

Comments
 (0)