Method: YARD::Templates::Helpers::HtmlHelper#urlencode
- Defined in:
- lib/yard/templates/helpers/html_helper.rb
permalink #urlencode(text) ⇒ String
Escapes a URL
24 25 26 |
# File 'lib/yard/templates/helpers/html_helper.rb', line 24 def urlencode(text) CGI.escape(text.to_s) end |