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
				
			
		| 
						 | 
				
			
			@ -5,10 +5,10 @@
 | 
			
		|||
	<title>{{.Subject}}</title>
 | 
			
		||||
</head>
 | 
			
		||||
 | 
			
		||||
{{$url := printf "<a href='%[1]s'>%[2]s</a>" (Escape .Link) (Escape .Repo)}}
 | 
			
		||||
{{$url := HTMLFormat "<a href='%[1]s'>%[2]s</a>" .Link .Repo)}}
 | 
			
		||||
<body>
 | 
			
		||||
	<p>{{.Subject}}.
 | 
			
		||||
		{{.locale.Tr "mail.repo.transfer.body" ($url|Safe)}}
 | 
			
		||||
		{{.locale.Tr "mail.repo.transfer.body" $url}}
 | 
			
		||||
	</p>
 | 
			
		||||
	<p>
 | 
			
		||||
		---
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue