1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/cgi/util.rb: Improve documentation. Patch by Clinton Nixon.

[Ruby 1.9 - Bug #4733]
	* lib/cgi/core.rb:  ditto
	* lib/cgi/cookie.rb:  ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2011-05-18 21:07:13 +00:00
parent ebce1b4bd6
commit 34276148c4
4 changed files with 23 additions and 0 deletions

View file

@ -83,9 +83,13 @@ class CGI
end
end
end
# Synonym for CGI.escapeHTML.
def CGI::escape_html(str)
escapeHTML(str)
end
# Synonym for CGI.unescapeHTML.
def CGI::unescape_html(str)
unescapeHTML(str)
end
@ -134,9 +138,13 @@ class CGI
string
end
end
# Synonym for CGI.escapeElement.
def CGI::escape_element(str)
escapeElement(str)
end
# Synonym for CGI.unescapeElement.
def CGI::unescape_element(str)
unescapeElement(str)
end