Skip to content

Instantly share code, notes, and snippets.

@JPFrancoia
Last active August 3, 2017 14:52
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 JPFrancoia/531c4db4fdc659a70137dc9501a72870 to your computer and use it in GitHub Desktop.
Save JPFrancoia/531c4db4fdc659a70137dc9501a72870 to your computer and use it in GitHub Desktop.
Strip html tags
def strip_tags(input_str):
"""Returns the string without the html tags"""
return re.sub('<[^>]*>', '', input_str)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment