safely escape all HTML and code
# File lib/innate/helper/cgi.rb, line 45 45: def html_and_code_escape(input) 46: Rack::Utils.escape_html(input.to_s).gsub(/#([{@$]@?)/, '#\1') 47: end
Shortcut for Rack::Utils.escape_html
@param [#] input @return [String]
# File lib/innate/helper/cgi.rb, line 32 32: def html_escape(input) 33: Rack::Utils.escape_html(input.to_s) 34: end
Shortcut for CGI.unescapeHTML
@param [#] input @return [String]
# File lib/innate/helper/cgi.rb, line 40 40: def html_unescape(input) 41: ::CGI.unescapeHTML(input.to_s) 42: end
Shortcut for Rack::Utils.unescape
@param [#] input @return [String] URI-decoded representation of input
# File lib/innate/helper/cgi.rb, line 24 24: def url_decode(input) 25: Rack::Utils.unescape(input.to_s) 26: end
Shortcut for Rack::Utils.escape
@param [#] input @return [String] URI-encoded representation of input
# File lib/innate/helper/cgi.rb, line 15 15: def url_encode(input) 16: Rack::Utils.escape(input.to_s) 17: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.