mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 14:31:02 +00:00 
			
		
		
		
	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 (cherry picked from commit d2f6588b66549b33adf8bac7044d03c89d668470) Conflicts: templates/code/searchcombo.tmpl templates/mail/auth/register_notify.tmpl templates/mail/issue/default.tmpl templates/repo/code/recently_pushed_new_branches.tmpl templates/repo/search.tmpl templates/repo/settings/protected_branch.tmpl templates/user/auth/activate.tmpl templates/user/auth/forgot_passwd.tmpl templates/user/dashboard/feeds.tmpl context
This commit is contained in:
		
					parent
					
						
							
								630d3f929e
							
						
					
				
			
			
				commit
				
					
						70f3c32b91
					
				
			
		
					 28 changed files with 100 additions and 100 deletions
				
			
		|  | @ -2,7 +2,7 @@ | |||
| 	<div class="repo-setting-content"> | ||||
| 		<form class="ui form" action="{{.Link}}" method="post"> | ||||
| 			<h4 class="ui top attached header"> | ||||
| 				{{ctx.Locale.Tr "repo.settings.branch_protection" (.Rule.RuleName|Escape) | Str2html}} | ||||
| 				{{ctx.Locale.Tr "repo.settings.branch_protection" .Rule.RuleName}} | ||||
| 			</h4> | ||||
| 			<div class="ui attached segment branch-protection"> | ||||
| 				<h5 class="ui dividing header">{{ctx.Locale.Tr "repo.settings.protect_patterns"}}</h5> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue