mirror of
				https://github.com/spbleadersofdigtal/backend.git
				synced 2025-11-04 09:37:32 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			175 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			175 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import re
 | 
						|
 | 
						|
CLEANR = re.compile("<.*?>|&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-f]{1,6});")
 | 
						|
 | 
						|
 | 
						|
def cleanhtml(raw_html):
 | 
						|
    cleantext = re.sub(CLEANR, "", raw_html)
 | 
						|
    return cleantext
 |