Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

remove html tags from string python

import re

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