class JsDuck::Util::HTML
Helpers for dealing with HTML
Public Class Methods
escape(html)
click to toggle source
Escapes HTML
, replacing < with < …
# File lib/jsduck/util/html.rb, line 15 def self.escape(html) CGI.escapeHTML(html) end
unescape(html)
click to toggle source
Unescapes HTML
, replacing < with < …
# File lib/jsduck/util/html.rb, line 20 def self.unescape(html) CGI.unescapeHTML(html) end