Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这种字符串:
I\x26#39;m happy
我期待(显然,我猜!:)):
I'm happy
我怎么知道它\x26#39;是什么,我怎么能解码它?
\x26#39;
require "cgi" CGI.unescapeHTML("\x26#39;") # => "'" CGI.unescapeHTML("I\x26#39;m happy") # => "I'm happy"