Answers for "remove html tags from string python regex"

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 python regex"

Browse Popular Code Answers by Language