Remove incorrect and unnecessary Escape from templates (#29394)
Follow #29165 * some of them are incorrect, which would lead to double escaping (eg: `(print (Escape $.RepoLink)`) * other of them are not necessary, because `Tr` handles strings&HTML automatically Suggest to review by "unified view": https://github.com/go-gitea/gitea/pull/29394/files?diff=unified&w=0
This commit is contained in:
parent
ea164aba4b
commit
d2f6588b66
28 changed files with 100 additions and 100 deletions
|
@ -7,7 +7,7 @@
|
|||
</div>
|
||||
{{else if .SearchResults}}
|
||||
<h3>
|
||||
{{ctx.Locale.Tr "explore.code_search_results" (.Keyword|Escape)}}
|
||||
{{ctx.Locale.Tr "explore.code_search_results" .Keyword}}
|
||||
</h3>
|
||||
{{template "code/searchresults" .}}
|
||||
{{else if .Keyword}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue