Skip to content

Instantly share code, notes, and snippets.

@kch
Created January 2, 2010 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kch/267632 to your computer and use it in GitHub Desktop.
Save kch/267632 to your computer and use it in GitHub Desktop.
decode all html entities in a project's files, in-place
$ ack --no-sql --ignore-dir=vendor -l '&\S+?;' | xargs \
ruby1.9 -rhtmlentities -pi -e '$_ = HTMLEntities.new.decode($_)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment