Skip to content

Instantly share code, notes, and snippets.

@brantz
Created November 21, 2012 17:30
Show Gist options
  • Save brantz/4126270 to your computer and use it in GitHub Desktop.
Save brantz/4126270 to your computer and use it in GitHub Desktop.
blub
# encoding: utf-8
files = Dir.glob(File.dirname(__FILE__) + '*.json')¬
files.each do |file|
content = File.read(file)
content.gsub('amp;', '')
new = File.open(file, 'wb')
new << content
new.close
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment