Unescaping HTML for titles
pbos opened this issue · comments
[14:08:12] @Frost decubate: http://open.spotify.com/user/frost/playlist/0aYnwvC4routTgFPi0eVTR
[14:08:13] <+url-grabber> http://open.spotify.com/user/frost/playlist/0aYnwvC4routTgFPi0eVTR - Ewan Dobson – Ewan Dobson by Martin Frost on Spotify
Potentiell lösning (CGI ska vara broken?):
require 'rubygems'
require 'htmlentities'
coder = HTMLEntities.new
coder.decode('…') # => "…"
coder.decode('…') # => "…"
coder.decode('¢') # => "¢"
coder.decode('¢') # => "¢"
coder.encode("…", :named) # => "…"
coder.encode("…", :decimal) # => "…"