Cuttr.js Text Truncation Examples

Cuttr.js is a vanilla JavaScript text truncation library to truncate text to any number of characters, words, or even sentences.

Character truncation

Lorem ipsum dolor sit amet, link consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.

Word truncation

Lorem ipsum dolor sit amet, link consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa? Aenean commodo ligula eget dolor. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.

Sentence truncation

Lorem ipsum dolor sit amet, link consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa? Aenean commodo ligula eget dolor! Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.