Skip to content

Instantly share code, notes, and snippets.

@jrozner
Created February 19, 2013 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jrozner/4989878 to your computer and use it in GitHub Desktop.
Save jrozner/4989878 to your computer and use it in GitHub Desktop.
irb(main):001:0> require 'htmlentities'
=> true
irb(main):002:0> code = HTMLEntities.new
=> #<HTMLEntities:0x007f8e2d9d6f80 @flavor="xhtml1">
irb(main):003:0> code.decode("\u0026quot;").gsub(/"/, '')
=> ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment