Module: Waves::Helpers::Basic
- Defined in:
- lib/waves/helpers/basic.rb
Instance Method Summary collapse
-
#escape_html(s) ⇒ Object
Escape a string as HTML content.
-
#escape_uri(s) ⇒ Object
Escape a URI, converting quotes and spaces and so on.
Instance Method Details
#escape_html(s) ⇒ Object
Escape a string as HTML content.
6 |
# File 'lib/waves/helpers/basic.rb', line 6 def escape_html(s); Rack::Utils.escape_html(s); end |
#escape_uri(s) ⇒ Object
Escape a URI, converting quotes and spaces and so on.
9 |
# File 'lib/waves/helpers/basic.rb', line 9 def escape_uri(s); Rack::Utils.escape(s); end |