Sha256: cef68ea27f895e1f78da0bda4a891ed04f086a7766b992fb4a22e19cad4f36ff
Contents?: true
Size: 423 Bytes
Versions: 13
Compression:
Stored size: 423 Bytes
Contents
require 'cgi' module Gares #:nordoc: module StringExtensions # Unescape HTML def unescape_html CGI.unescapeHTML(encode('UTF-8')) end # Strip tags def strip_tags gsub(/<\/?[^>]*>/, '') end # Strips out whitespace then tests if the string is empty. def blank? strip.empty? end unless method_defined?(:blank?) end end String.send :include, Gares::StringExtensions
Version data entries
13 entries across 13 versions & 1 rubygems