Guest User

Untitled

a guest
Jun 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. def strip_html_tags(text):
  2. soup = BeautifulSoup(text, "html.parser")
  3. stripped_text = soup.get_text()
  4. return stripped_text
  5.  
  6. strip_html_tags('<html><h2>Some important text</h2></html>')
Add Comment
Please, Sign In to add comment