Install ruby-truncato by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-truncato
Description:
tool for truncating HTML strings efficiently
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.
Homepage: https://github.com/jorgemanrubia/truncato
Version: 0.7.9-1
Section: universe/ruby