Module: Kiss::KissAccessors

Included in:
ControllerAccessors
Defined in:
lib/kiss/accessors/controller.rb

Instance Method Summary collapse

Instance Method Details

#html_escape(string) ⇒ Object Also known as: h, escape_html

Encodes string for output to HTML.



13
14
15
# File 'lib/kiss/accessors/controller.rb', line 13

def html_escape(string)
  string.html_escape
end

#url_escape(string) ⇒ Object Also known as: u, escape, url_encode, escape_url

Escapes string for use in URLs.



4
5
6
# File 'lib/kiss/accessors/controller.rb', line 4

def url_escape(string)
  string.url_escape
end