Module: Rubyoshka::Encoding

Included in:
Object
Defined in:
lib/rubyoshka.rb

Instance Method Summary collapse

Instance Method Details

#__html_encode__(text) ⇒ Object



11
12
13
# File 'lib/rubyoshka.rb', line 11

def __html_encode__(text)
  EscapeUtils.escape_html(text.to_s)
end

#__uri_encode__(text) ⇒ Object



15
16
17
# File 'lib/rubyoshka.rb', line 15

def __uri_encode__(text)
  EscapeUtils.escape_uri(text.to_s)
end