351件ヒット
[1-100件を表示]
(0.038秒)
種類
- 特異メソッド (164)
- モジュール関数 (121)
- インスタンスメソッド (33)
- 文書 (22)
- ライブラリ (11)
ライブラリ
- ビルトイン (22)
-
cgi
/ util (110) - erb (44)
-
rubygems
/ remote _ fetcher (22) - shellwords (33)
- uri (21)
-
webrick
/ accesslog (11) -
webrick
/ htmlutils (11) -
webrick
/ httputils (44)
クラス
- CGI (110)
-
Gem
:: RemoteFetcher (22) - Regexp (22)
- String (11)
モジュール
-
ERB
:: Util (44) - Shellwords (22)
- URI (21)
-
WEBrick
:: AccessLog (11) -
WEBrick
:: HTMLUtils (11) -
WEBrick
:: HTTPUtils (44)
キーワード
- encode (7)
- escape8bit (11)
- escapeElement (11)
- escapeHTML (11)
-
escape
_ element (11) -
escape
_ html (11) -
escape
_ path (11) - h (11)
-
html
_ escape (11) - quote (11)
- rdoc (11)
-
ruby 1
. 8 . 3 feature (11) - shellescape (22)
- u (11)
- unescape (40)
- unescapeElement (11)
- unescapeHTML (11)
-
unescape
_ element (11) -
unescape
_ html (11) -
url
_ encode (11) - 正規表現 (11)
検索結果
先頭5件
-
String
# shellescape -> String (27219.0) -
文字列を Bourne シェルのコマンドライン中で安全に使えるようにエスケープします。
...文字列を Bourne シェルのコマンドライン中で安全に使えるようにエスケープします。
string.shellescape は、Shellwords.escape(string) と等価です。
@return エスケープされた文字列を返します。
@see Shellwords.#shellescape... -
Regexp
. escape(string) -> String (18333.0) -
string の中で正規表現において特別な意味を持つ文字の直前にエ スケープ文字(バックスラッシュ)を挿入した文字列を返します。
...
string の中で正規表現において特別な意味を持つ文字の直前にエ
スケープ文字(バックスラッシュ)を挿入した文字列を返します。
@param string 正規表現において特別な意味をもつ文字をもつ文字列を指定します。
//emlist[例][ru......by]{
rp = Regexp.escape("$bc^")
p rp # => "\\$bc\\^"
//}... -
CGI
. escape(string) -> String (18321.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')... -
WEBrick
:: HTMLUtils . # escape(string) -> String (18315.0) -
指定された文字列に含まれる ", &, <, > を文字実体参照に変換した文字列を 生成して返します。
...定された文字列に含まれる ", &, <, > を文字実体参照に変換した文字列を
生成して返します。
@param string エスケープしたい文字列を指定します。
require 'webrick'
p WEBrick::HTMLUtils.escape('/?q=foo&hl=<ja>') #=> "/?q=foo&hl=<ja>"... -
Gem
:: RemoteFetcher # escape(str) -> String (18208.0) -
URI 文字列をエンコードした文字列を返します。
...URI 文字列をエンコードした文字列を返します。
@param str 文字列を指定します。
@see URI.escape... -
WEBrick
:: HTTPUtils . # escape(str) -> String (18208.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 文字列を指定します。... -
Shellwords
. escape(str) -> String (18202.0) -
文字列を Bourne シェルのコマンドライン中で安全に使えるようにエスケープします。
...を Bourne シェルのコマンドライン中で安全に使えるようにエスケープします。
このメソッドは、Shellwords.#shellescape の別名です。
@param str エスケープの対象となる文字列を指定します。
@return エスケープされた文字列を返し... -
WEBrick
:: AccessLog . # escape(data) -> String (18202.0) -
与えられた文字列が汚染されている場合、制御文字を無効化します。
与えられた文字列が汚染されている場合、制御文字を無効化します。
@param data エスケープする文字列を指定します。 -
URI
. escape(str , unsafe = URI :: UNSAFE) -> String (15227.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... -
CGI
. escapeElement(string , *elements) -> String (6311.0) -
第二引数以降に指定したエレメントのタグだけを実体参照に置換します。
...実体参照に置換します。
@param string 文字列を指定します。
@param elements HTML タグの名前を一つ以上指定します。文字列の配列で指定することも出来ます。
例:
require "cgi"
p CGI.escapeElement('<BR><A HREF="url"></A>', "A", "I......MG")
# => "<BR><A HREF="url"></A>"
p CGI.escapeElement('<BR><A HREF="url"></A>', ["A", "IMG"])
# => "<BR><A HREF="url"></A>"...