Method: YARD::Templates::Helpers::HtmlHelper#urlencode

Defined in:
lib/yard/templates/helpers/html_helper.rb

#urlencode(text) ⇒ String

Escapes a URL

Parameters:

Returns:

  • (String)

    the escaped URL

[View source]

24
25
26
# File 'lib/yard/templates/helpers/html_helper.rb', line 24

def urlencode(text)
  CGI.escape(text.to_s)
end