Method: Bundler::Thor::Util.escape_html

Defined in:
lib/bundler/vendor/thor/lib/thor/util.rb

.escape_html(string) ⇒ Object

Returns a string that has had any HTML characters escaped.

Examples

Bundler::Thor::Util.escape_html('<div>')   # => "&lt;div&gt;"

Parameters

String

Returns

String

[View source]

280
281
282
# File 'lib/bundler/vendor/thor/lib/thor/util.rb', line 280

def escape_html(string)
  CGI.escapeHTML(string)
end