Cuttr.js

Cuttr is a modern javascript plugin that truncates
multi-line content with ellipsis, fast and simp...



flash_on

Lightweight & fast

Cuttr.js is a very lightweight plugin with just ~7KB (minified). It truncates page content (e.g. text) within lots of elements quickly.

security

Zero dependencies

It's a zero dependency, multi-line ellipsis library, that does not require other libraries.

settings

Easy to use

It keeps the use simple, but offers a wide range of options and methods e.g. allowing for custom ellipsis strings or multiple truncation methods.





See it in action

Cuttr.js is designed to not't over complicate the way to cut strings and HMTL with js, but still being able to customize. It includes lots of examples, documentation and support.


More demos & examples

See the Pen Cuttr.js - Base example by Herkulas (@herkulas) on CodePen.



Overview

About


Cuttr is a Javascript / jQuery plugin with which multiple-line texts on a website can be cut.


At the end of the long string to be truncated, defined characters such as an ellipse are added to indicate that there is more content than currently visible. All this happens while the original HMTL Markup remains unchanged after content is unfolded again.

Features


  • check

    Multiple truncation methods

  • check

    Truncate text without breaking the HTML tags

  • check

    Custom ellipsis strings

  • check

    Optional "Read more" anchor

  • check

    Modern codebase

  • check

    jQuery compatible

  • check

    Open source

Download


Our code base is open source, which means more stable code. Thanks to contributions from other users.


The cuttr javascript library is free to use for open source usage (application must be compatible with the GNU GPL license v3). You can purchase a license if you want to use it in a commercial project (including plugins, themes and templates you plan to sell).





Ready to truncate strings the right way?

Explore the cuttr.js docs or buy the license that fits your needs