Sha256: 29698f7f454956d163900edcee714da173564ffd7584c2d1c69a8055955ebccc
Contents?: true
Size: 412 Bytes
Versions: 12
Compression:
Stored size: 412 Bytes
Contents
require 'cgi' module JsDuck # Helpers for dealing with HTML class HTML # Strips tags from HTML text def self.strip_tags(html) html.gsub(/<.*?>/, "") end # Escapes HTML, replacing < with < ... def self.escape(html) CGI.escapeHTML(html) end # Unescapes HTML, replacing < with < ... def self.unescape(html) CGI.unescapeHTML(html) end end end
Version data entries
12 entries across 12 versions & 1 rubygems