Skip to content

Instantly share code, notes, and snippets.

@house9
Created January 6, 2010 17:50
Show Gist options
  • Save house9/270463 to your computer and use it in GitHub Desktop.
Save house9/270463 to your computer and use it in GitHub Desktop.
# remove all script tags
html_content = html_content.gsub(/<script.*?>[\s\S]*<\/script>/i, "")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment