<name>Lätt B bed. Två omgångar A:0 och A:0</name>
--
Posted via http://www.ruby-forum.com/.
Dear John,
require "CGI"
p CGI.unescapeHTML("<name>Lätt B bed. Två omgångar A:0 och A:0</name>")
should do it.
Best regards,
Axel
--
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196
> Is there a way to unescape this string?
>
> <name>Lätt B bed. Två omgångar A:0 och A:0</name>
I think this works correctly:
require 'rexml/document'
s = "<name>Lätt B bed. Två omgångar A:0 och A:0</name>"
puts REXML::Text::unnormalize(s)
m.
--
matt neuburg, phd = ma...@tidbits.com, http://www.tidbits.com/matt/
Leopard - http://www.takecontrolbooks.com/leopard-customizing.html
AppleScript - http://www.amazon.com/gp/product/0596102119
Read TidBITS! It's free and smart. http://www.tidbits.com