ruby-truncato

tool for truncating HTML strings efficiently
  https://github.com/jorgemanrubia/truncato
  0
  no reviews



Ruby tool for truncating HTML strings keeping a valid HTML markup.

Its main motivation was that existing libs couldn't truncate a multiple-MB document into a few-KB one in a reasonable time. It uses the Nokogiri SAX parser.