Skip to content

Instantly share code, notes, and snippets.

@jpinnix
Created October 29, 2008 01:13
Show Gist options
  • Save jpinnix/20574 to your computer and use it in GitHub Desktop.
Save jpinnix/20574 to your computer and use it in GitHub Desktop.
Remove textile and HTML
def remove_textile_and_html(text)
textilize(text).gsub(/<\/?[^>]*>/, "")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment