Skip to content

Instantly share code, notes, and snippets.

@jaychoo
Created October 6, 2011 18:40
Show Gist options
  • Save jaychoo/1268245 to your computer and use it in GitHub Desktop.
Save jaychoo/1268245 to your computer and use it in GitHub Desktop.
Remove html tags from string
from BeautifulSoup import BeautifulSoup
''.join(BeautifulSoup(page).findAll(text=True))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment