Is there a way to unescape this string?
Lätt B bed. Två omgångar A:0 och A:0
Is there a way to unescape this string?
Lätt B bed. Två omgångar A:0 och A:0
-------- Original-Nachricht --------
Datum: Fri, 11 Jul 2008 21:37:30 +0900
Von: Jon S. [email protected]
An: [email protected]
Betreff: Unescape xml element content
Is there a way to unescape this string?
Lätt B bed. Två omgångar A:0 och A:0
Posted via http://www.ruby-forum.com/.
Dear John,
require “CGI”
p CGI.unescapeHTML(“Lätt B bed. Två omgångar A:0
och A:0”)
should do it.
Best regards,
Axel
Jon S. [email protected] wrote:
Is there a way to unescape this string?
Lätt B bed. Två omgångar A:0 och A:0
I think this works correctly:
require ‘rexml/document’
s = “Lätt B bed. Två omgångar A:0 och A:0”
puts REXML::Text::unnormalize(s)
m.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs