mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	add allow attribute class to <code>
				
					
				
			This commit is contained in:
		@@ -28,6 +28,10 @@ import (
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
var Sanitizer = bluemonday.UGCPolicy()
 | 
					var Sanitizer = bluemonday.UGCPolicy()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func init() {
 | 
				
			||||||
 | 
						Sanitizer.AllowAttrs("class").OnElements("code")
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Encode string to md5 hex value.
 | 
					// Encode string to md5 hex value.
 | 
				
			||||||
func EncodeMd5(str string) string {
 | 
					func EncodeMd5(str string) string {
 | 
				
			||||||
	m := md5.New()
 | 
						m := md5.New()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user