Programming Tutorials

(追記) (追記ここまで)

unescapeElement() in Ruby

By: Jeeva in Ruby Tutorials on 2009年03月03日 [フレーム]

unescapeElement(string, *elements)

Undo escaping such as that done by CGI::escapeElement()

 print CGI::unescapeElement(
 CGI::escapeHTML('<BR><A HREF="url"></A>'), "A", "IMG")
 # "&lt;BR&gt;<A HREF="url"></A>"
 print CGI::unescapeElement(
 CGI::escapeHTML('<BR><A HREF="url"></A>'), ["A", "IMG"])
 # "&lt;BR&gt;<A HREF="url"></A>"



(追記) (追記ここまで)


Add Comment

JavaScript must be enabled for certain features to work
* Required information
1000

Comments

No comments yet. Be the first!
(追記) (追記ここまで)
(追記) (追記ここまで)

AltStyle によって変換されたページ (->オリジナル) /