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

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/truncate_html-0.9.2/lib/app/helpers/truncate_html_helper.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/truncate_html-0.9.2/lib/app/helpers/truncate_html_helper.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/truncate_html-0.9.2/lib/app/helpers/truncate_html_helper.rb
truncate_html-0.9.3 lib/app/helpers/truncate_html_helper.rb
truncate_html_chinese-0.1.0 lib/app/helpers/truncate_html_helper.rb
truncate_html-0.9.2 lib/app/helpers/truncate_html_helper.rb
truncate_html-0.9.1 lib/app/helpers/truncate_html_helper.rb