Answers for "remove html tags from string using regex in python"

1

regex to remove html tags python

def cleanhtml(raw_html):
  cleanr = re.compile('<.*?>')
  cleantext = re.sub(cleanr, '', raw_html)
  return cleantext
Posted by: Guest on July-21-2021

Code answers related to "remove html tags from string using regex in python"

Browse Popular Code Answers by Language