ライブラリ
- ビルトイン (36)
-
cgi
/ core (12) -
cgi
/ util (132) - erb (48)
- nkf (12)
-
rubygems
/ remote _ fetcher (24) - shellwords (48)
- uri (57)
-
webrick
/ accesslog (12) -
webrick
/ cgi (12) -
webrick
/ htmlutils (12) -
webrick
/ httpserver (12) -
webrick
/ httputils (48)
クラス
- CGI (132)
-
Gem
:: RemoteFetcher (24) - Regexp (24)
- String (12)
-
URI
:: Generic (24) -
URI
:: MailTo (12) -
WEBrick
:: CGI (12) -
WEBrick
:: HTTPServer (12)
モジュール
-
CGI
:: QueryExtension (12) -
ERB
:: Util (48) -
File
:: Constants (12) - Shellwords (24)
- URI (21)
-
WEBrick
:: AccessLog (12) -
WEBrick
:: HTMLUtils (12) -
WEBrick
:: HTTPUtils (48)
キーワード
-
FNM
_ NOESCAPE (12) - NKF (12)
- Shellwords (12)
-
TABLE
_ FOR _ ESCAPE _ HTML _ _ (12) - build2 (24)
- encode (7)
- escape8bit (12)
- escapeElement (12)
- escapeHTML (12)
-
escape
_ element (12) -
escape
_ html (12) -
escape
_ path (12) - h (12)
- headers= (12)
-
html
_ escape (12) - new (24)
- quote (12)
- rdoc (12)
-
rdoc
/ markup (12) -
read
_ escape (12) -
ruby 1
. 8 . 3 feature (12) - shellescape (24)
-
tokadd
_ escape (12) - u (12)
- unescape (43)
- unescapeElement (12)
- unescapeHTML (12)
-
unescape
_ element (12) -
unescape
_ filename? (12) -
unescape
_ html (12) -
url
_ encode (12) - 正規表現 (12)
検索結果
先頭5件
-
WEBrick
:: HTTPUtils . # escape _ path(str) -> String (6107.0) -
与えられた文字列を数値参照文字列に変換します。
...て変換します。
num = '0123456789'
lowalpha = 'abcdefghijklmnopqrstuvwxyz'
upalpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
mark = '-_.!~*\'()'
unreserved = num + lowalpha + upalpha + mark
/[^#{Regexp.escape(unreserved + ":@&=+$,")}]/n
@param str 文字列を指定します。... -
String
# shellescape -> String (6106.0) -
文字列を Bourne シェルのコマンドライン中で安全に使えるようにエスケープします。
...文字列を Bourne シェルのコマンドライン中で安全に使えるようにエスケープします。
string.shellescape は、Shellwords.escape(string) と等価です。
@return エスケープされた文字列を返します。
@see Shellwords.#shellescape... -
CGI
. escapeElement(string , *elements) -> String (6101.0) -
第二引数以降に指定したエレメントのタグだけを実体参照に置換します。
...で指定することも出来ます。
例:
require "cgi"
p CGI.escapeElement('<BR><A HREF="url"></A>', "A", "IMG")
# => "<BR><A HREF="url"></A>"
p CGI.escapeElement('<BR><A HREF="url"></A>', ["A", "IMG"])
# => "<BR><A HREF="url"&... -
CGI
. escapeHTML(string) -> String (6101.0) -
与えられた文字列中の '、&、"、<、> を実体参照に置換した文字列を新しく作成し返します。
...@param string 文字列を指定します。
require "cgi"
p CGI.escapeHTML("3 > 1") #=> "3 > 1"
print('<script type="text/javascript">alert("警告")</script>')
p CGI.escapeHTML('<script type="text/javascript">alert("警告")</script>')
#=> "<scr... -
CGI
. escape _ element(string , *elements) -> String (6101.0) -
第二引数以降に指定したエレメントのタグだけを実体参照に置換します。
...で指定することも出来ます。
例:
require "cgi"
p CGI.escapeElement('<BR><A HREF="url"></A>', "A", "IMG")
# => "<BR><A HREF="url"></A>"
p CGI.escapeElement('<BR><A HREF="url"></A>', ["A", "IMG"])
# => "<BR><A HREF="url"&... -
CGI
. escape _ html(string) -> String (6101.0) -
与えられた文字列中の '、&、"、<、> を実体参照に置換した文字列を新しく作成し返します。
...@param string 文字列を指定します。
require "cgi"
p CGI.escapeHTML("3 > 1") #=> "3 > 1"
print('<script type="text/javascript">alert("警告")</script>')
p CGI.escapeHTML('<script type="text/javascript">alert("警告")</script>')
#=> "<scr... -
CGI
:: TABLE _ FOR _ ESCAPE _ HTML _ _ -> Hash (6101.0) -
HTML 上でエスケープする文字列の変換テーブルを返します。
HTML 上でエスケープする文字列の変換テーブルを返します。
{
"'" => ''',
'&' => '&',
'"' => '"',
'<' => '<',
'>' => '>',
} -
WEBrick
:: HTTPUtils . # escape8bit(str) -> String (6101.0) -
与えられた文字列を数値参照文字列に変換します。
与えられた文字列を数値参照文字列に変換します。
@param str 文字列を指定します。 -
CGI
. unescape(string) -> String (6100.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 (6100.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))
# =>...