Skip to content

Instantly share code, notes, and snippets.

@ascendbruce
Created October 20, 2013 15:24
Show Gist options
  • Save ascendbruce/7071046 to your computer and use it in GitHub Desktop.
Save ascendbruce/7071046 to your computer and use it in GitHub Desktop.
ruby regexp string strip HTML
str.gsub(/<\/?[^>]*>/, "")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment