Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

regex to remove html tags python

def cleanhtml(raw_html):
  cleanr = re.compile('<.*?>')
  cleantext = re.sub(cleanr, '', raw_html)
  return cleantext
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #regex #remove #html #tags #python
ADD COMMENT
Topic
Name
9+7 =