diff options
Diffstat (limited to 'lib/cgi/util.rb')
-rw-r--r-- | lib/cgi/util.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/cgi/util.rb b/lib/cgi/util.rb index 9f8a63ac92..e611cbedb2 100644 --- a/lib/cgi/util.rb +++ b/lib/cgi/util.rb @@ -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 |