Sha256: 761c7b89cd07ff58d959997ab52f523dd15f7fe7387984593f53eb7b1d6d3aeb
Contents?: true
Size: 233 Bytes
Versions: 7
Compression:
Stored size: 233 Bytes
Contents
module TruncateHtmlHelper def truncate_html(html, options={}) return '' if html.nil? html_string = TruncateHtml::HtmlString.new(html) TruncateHtml::HtmlTruncator.new(html_string, options).truncate.html_safe end end
Version data entries
7 entries across 7 versions & 3 rubygems