Document uri_escape
This commit is contained in:
parent
008a094e95
commit
9adfd6ddeb
|
@ -100,6 +100,16 @@ module Jekyll
|
||||||
CGI::escape(input)
|
CGI::escape(input)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# URI escape a string.
|
||||||
|
#
|
||||||
|
# input - The String to escape.
|
||||||
|
#
|
||||||
|
# Examples
|
||||||
|
#
|
||||||
|
# uri_escape('foo, bar \\baz?')
|
||||||
|
# # => "foo,%20bar%20%5Cbaz?"
|
||||||
|
#
|
||||||
|
# Returns the escaped String.
|
||||||
def uri_escape(input)
|
def uri_escape(input)
|
||||||
URI.escape(input)
|
URI.escape(input)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue