るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.094秒)
トップページ > クエリ:l[x] > クエリ:escape_path[x]

別のキーワード

  1. cgi escape_html
  2. cgi escape
  3. cgi escape_element
  4. shellwords escape
  5. cgi table_for_escape_html__

ライブラリ

モジュール

検索結果

WEBrick::HTTPUtils.#escape_path(str) -> String (21101.0)

与えられた文字列を数値参照文字列に変換します。

...の正規表現を使用して変換します。

num = '0123456789'
l
owalpha = 'abcdefghijklmnopqrstuvwxyz'
upalpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
mark = '-_.!~*\'()'
unreserved = num + lowalpha + upalpha + mark
/[^#{Regexp.escape(unreserved + ":@&=+$,")}]/n

@param str 文字...