429件ヒット
[1-100件を表示]
(0.039秒)
種類
- 特異メソッド (225)
- モジュール関数 (132)
- インスタンスメソッド (48)
- 文書 (12)
- モジュール (12)
ライブラリ
- ビルトイン (24)
-
cgi
/ util (120) - erb (48)
- nkf (12)
-
rubygems
/ remote _ fetcher (24) - shellwords (36)
- uri (57)
-
webrick
/ accesslog (12) -
webrick
/ cgi (12) -
webrick
/ htmlutils (12) -
webrick
/ httpserver (12) -
webrick
/ httputils (48)
クラス
- CGI (120)
-
Gem
:: RemoteFetcher (24) - Regexp (24)
- String (12)
-
URI
:: Generic (24) -
URI
:: MailTo (12) -
WEBrick
:: CGI (12) -
WEBrick
:: HTTPServer (12)
モジュール
-
ERB
:: Util (48) - Shellwords (24)
- URI (21)
-
WEBrick
:: AccessLog (12) -
WEBrick
:: HTMLUtils (12) -
WEBrick
:: HTTPUtils (48)
キーワード
- NKF (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)
-
ruby 1
. 8 . 3 feature (12) - shellescape (24)
- u (12)
- unescape (43)
- unescapeElement (12)
- unescapeHTML (12)
-
unescape
_ element (12) -
unescape
_ html (12) -
url
_ encode (12)
検索結果
先頭5件
-
CGI
. escape(string) -> String (18119.0) -
与えられた文字列を URL エンコードした文字列を新しく作成し返します。
...を新しく作成し返します。
@param 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')... -
Gem
:: RemoteFetcher # escape(str) -> String (18119.0) -
URI 文字列をエンコードした文字列を返します。
...URI 文字列をエンコードした文字列を返します。
@param str 文字列を指定します。
@see URI.escape... -
Regexp
. escape(string) -> String (18113.0) -
string の中で正規表現において特別な意味を持つ文字の直前にエ スケープ文字(バックスラッシュ)を挿入した文字列を返します。
...持つ文字の直前にエ
スケープ文字(バックスラッシュ)を挿入した文字列を返します。
@param string 正規表現において特別な意味をもつ文字をもつ文字列を指定します。
//emlist[例][ruby]{
rp = Regexp.escape("$bc^")
p rp # => "\\$bc\\^"
//}... -
Shellwords
. escape(str) -> String (18113.0) -
文字列を Bourne シェルのコマンドライン中で安全に使えるようにエスケープします。
...シェルのコマンドライン中で安全に使えるようにエスケープします。
このメソッドは、Shellwords.#shellescape の別名です。
@param str エスケープの対象となる文字列を指定します。
@return エスケープされた文字列を返します。... -
WEBrick
:: HTMLUtils . # escape(string) -> String (18113.0) -
指定された文字列に含まれる ", &, <, > を文字実体参照に変換した文字列を 生成して返します。
...定された文字列に含まれる ", &, <, > を文字実体参照に変換した文字列を
生成して返します。
@param string エスケープしたい文字列を指定します。
require 'webrick'
p WEBrick::HTMLUtils.escape('/?q=foo&hl=<ja>') #=> "/?q=foo&hl=<ja>"... -
WEBrick
:: HTTPUtils . # escape(str) -> String (18113.0) -
与えられた文字列を数値参照文字列に変換します。
...ます。
control = (0x0..0x1f).collect{|c| c.chr }.join + "\x7f"
space = " "
delims = '<>#%"'
unwise = '{}|\\^[]`'
nonascii = (0x80..0xff).collect{|c| c.chr }.join
/[#{Regexp.escape(control + space + delims + unwise + nonascii)}]/n
@param str 文字列を指定します。... -
WEBrick
:: AccessLog . # escape(data) -> String (18107.0) -
与えられた文字列が汚染されている場合、制御文字を無効化します。
...与えられた文字列が汚染されている場合、制御文字を無効化します。
@param data エスケープする文字列を指定します。... -
URI
. escape(str , unsafe = URI :: UNSAFE) -> String (15137.0) -
URI 文字列をエンコードした文字列を返します。
...RB::Util.#url_encode,
CGI.escape,
URI.encode_www_form_component,
WEBrick::HTTPUtils.#escape_form,
WEBrick::HTTPUtils.#escape
などの使用を検討してください。
詳細は 29293 からのスレッドを参照してください。
例:
require 'uri'
p URI.escape('http://images.google.co.......jp/images?q=モナリザ&ie=EUC-JP')
#=> "http://images.google.co.jp/images?q=%A5%E2%A5%CA%A5%EA%A5%B6&ie=EUC-JP"
@param str URI を文字列として与えます。
@param unsafe URI として指定できない文字を正規表現か文字列で指定します。... -
String
# shellescape -> String (6118.0) -
文字列を Bourne シェルのコマンドライン中で安全に使えるようにエスケープします。
...文字列を Bourne シェルのコマンドライン中で安全に使えるようにエスケープします。
string.shellescape は、Shellwords.escape(string) と等価です。
@return エスケープされた文字列を返します。
@see Shellwords.#shellescape...