Module: Cuba::Prelude

Defined in:
lib/cuba/prelude.rb

Instance Method Summary collapse

Instance Method Details

#escape_html(str) ⇒ Object Also known as: h



9
10
11
# File 'lib/cuba/prelude.rb', line 9

def escape_html(str)
  Rack::Utils.escape_html(str)
end

#urlencode(str) ⇒ Object



5
6
7
# File 'lib/cuba/prelude.rb', line 5

def urlencode(str)
  URI.encode_www_form_component(str)
end