Truncate HTML Code to Limit Its Length by Number of Words: Cutter.js

Cutter.js is a class to truncate HTML code to limit its length by number of words, without losing the markup.

Cutter solves the problem when its needed to cut some content by a number of words but its mandatory no lose any markup. Cutter cuts the content to the number of requested words and if needed puts a link to open the full content again.

Features

  • No markup is lost
  • Framework agnostic
  • The content can be written without take care about the full content
  • Not needed to have two different contents

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>