4件ヒット
[1-4件を表示]
(0.052秒)
ライブラリ
-
cgi
/ util (4)
キーワード
- escape (1)
- unescape (1)
- unescapeElement (1)
-
unescape
_ element (1)
検索結果
先頭4件
-
CGI
. escape(string) -> String (736.0) -
与えられた文字列を URL エンコードした文字列を新しく作成し返します。
...string URL エンコードしたい文字列を指定します。
例:
require "cgi"
p CGI.escape('@##') #=> "%40%23%23"
url = "http://www.example.com/register?url=" +
CGI.escape('http://www.example.com/index.rss')
p url
#=> "http://www.example... -
CGI
. unescape(string) -> String (736.0) -
与えられた文字列を URL デコードした文字列を新しく作成し返します。
...しく作成し返します。
@param string URL エンコードされている文字列を指定します。
require "cgi"
p CGI.unescape('%40%23%23') #=> "@##"
p CGI.unescape("http%3A%2F%2Fwww.example.com%2Findex.rss")
#=> "http://www.example.com/index.rss"... -
CGI
. unescapeElement(string , *elements) -> String (652.0) -
特定の要素だけをHTMLエスケープから戻す。
...列で指定することも出来ます。
例:
require "cgi"
print CGI.unescapeElement('<BR><A HREF="url"></A>', "A", "IMG")
# => "<BR><A HREF="url"></A>"
print CGI.unescapeElement('<BR><A HREF="url"></A>', %w(A IMG))... -
CGI
. unescape _ element(string , *elements) -> String (652.0) -
特定の要素だけをHTMLエスケープから戻す。
...列で指定することも出来ます。
例:
require "cgi"
print CGI.unescapeElement('<BR><A HREF="url"></A>', "A", "IMG")
# => "<BR><A HREF="url"></A>"
print CGI.unescapeElement('<BR><A HREF="url"></A>', %w(A IMG))...