Skip to content

Instantly share code, notes, and snippets.

@Godoy
Created July 22, 2014 15:57
Show Gist options
  • Save Godoy/893a53780bc522529f8c to your computer and use it in GitHub Desktop.
Save Godoy/893a53780bc522529f8c to your computer and use it in GitHub Desktop.
temove tags script em strings - ruby on rails
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