Changed code to use new rune type unicode code points.
This commit is contained in:
		
							parent
							
								
									4f7417ecbc
								
							
						
					
					
						commit
						0ecfd7fd99
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -47,7 +47,7 @@ func EntityToUtf8(entity string) string {
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	var arr [4]byte
 | 
			
		||||
	if size := utf8.EncodeRune(arr[:], num); size == 0 {
 | 
			
		||||
	if size := utf8.EncodeRune(arr[:], rune(num)); size == 0 {
 | 
			
		||||
		return "&#" + entity + ";"
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue