mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	Removed unnecessary call to force_text in utils.html.clean_html.
Refs #21574
This commit is contained in:
		
				
					committed by
					
						 Baptiste Mispelon
						Baptiste Mispelon
					
				
			
			
				
	
			
			
			
						parent
						
							1689744aee
						
					
				
				
					commit
					db41778e8c
				
			| @@ -291,7 +291,7 @@ def clean_html(text): | |||||||
|           bottom of the text. |           bottom of the text. | ||||||
|     """ |     """ | ||||||
|     from django.utils.text import normalize_newlines |     from django.utils.text import normalize_newlines | ||||||
|     text = normalize_newlines(force_text(text)) |     text = normalize_newlines(text) | ||||||
|     text = re.sub(r'<(/?)\s*b\s*>', '<\\1strong>', text) |     text = re.sub(r'<(/?)\s*b\s*>', '<\\1strong>', text) | ||||||
|     text = re.sub(r'<(/?)\s*i\s*>', '<\\1em>', text) |     text = re.sub(r'<(/?)\s*i\s*>', '<\\1em>', text) | ||||||
|     text = fix_ampersands(text) |     text = fix_ampersands(text) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user