Method: JsDuck::Util::HTML.escape

Defined in:
lib/jsduck/util/html.rb

.escape(html) ⇒ Object

Escapes HTML, replacing < with &lt; …



15
16
17
# File 'lib/jsduck/util/html.rb', line 15

def self.escape(html)
  CGI.escapeHTML(html)
end