Answers for "regex remove html tags 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

Browse Popular Code Answers by Language