forked from forgejo/forgejo
Refactor Safe modifier (#29392)
After this PR: no need to play with the Safe/Escape tricks anymore. See the changes for more details. (cherry picked from commit f9207b09479df964872d68842469991042b5497f) Conflicts: templates/repo/issue/view_title.tmpl templates/user/settings/applications.tmpl context
This commit is contained in:
parent
30fe3d8d4c
commit
90a62b87c0
24 changed files with 79 additions and 55 deletions
|
@ -88,7 +88,7 @@
|
|||
{{.CsrfTokenHtml}}
|
||||
<div class="field">
|
||||
<label>
|
||||
{{ctx.Locale.Tr "repo.branch.new_branch_from" (`<span class="text" id="modal-create-branch-from-span"></span>`|Safe)}}
|
||||
{{ctx.Locale.Tr "repo.branch.new_branch_from" (`<span class="text" id="modal-create-branch-from-span"></span>`|SafeHTML)}}
|
||||
</label>
|
||||
</div>
|
||||
<div class="required field">
|
||||
|
@ -113,7 +113,7 @@
|
|||
<input type="hidden" name="create_tag" value="true">
|
||||
<div class="field">
|
||||
<label>
|
||||
{{ctx.Locale.Tr "repo.tag.create_tag_from" (`<span class="text" id="modal-create-tag-from-span"></span>`|Safe)}}
|
||||
{{ctx.Locale.Tr "repo.tag.create_tag_from" (`<span class="text" id="modal-create-tag-from-span"></span>`|SafeHTML)}}
|
||||
</label>
|
||||
</div>
|
||||
<div class="required field">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue