提交 79a65fea 编写于 作者: J Jon Moss 提交者: GitHub

Merge pull request #28936 from...

Merge pull request #28936 from dixpac/dixpac/update-docs-ActionDispatch__Journey__Router__Utils.unescape_uri

Add docs for  Router::Utils.unescape_uri method. [ci skip]
......@@ -84,6 +84,10 @@ def self.escape_fragment(fragment)
ENCODER.escape_fragment(fragment.to_s)
end
# Replaces any escaped sequences with their unescaped representations
#
# uri = "/topics?title=Ruby%20on%20Rails"
# unescape_uri(uri) #=> "/topics?title=Ruby on Rails"
def self.unescape_uri(uri)
ENCODER.unescape_uri(uri)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册