Answers for "how to remove certain tags from a string pyth"

3

remove html tags from string python

import re

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

Code answers related to "how to remove certain tags from a string pyth"

Browse Popular Code Answers by Language