Skip to content

Instantly share code, notes, and snippets.

@himlohiya
Created June 29, 2018 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save himlohiya/3b3ef1ac929c9b8fa08cd4f7f3563941 to your computer and use it in GitHub Desktop.
Save himlohiya/3b3ef1ac929c9b8fa08cd4f7f3563941 to your computer and use it in GitHub Desktop.
def strip_html_tags(text):
soup = BeautifulSoup(text, "html.parser")
stripped_text = soup.get_text()
return stripped_text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment