![Succinct - Truncating multiple lines of text. Succinct - Truncating multiple lines of text.](/upload/images/layout/succinct/succinct-1.jpg)
![Succinct - Truncating multiple lines of text. Succinct - Truncating multiple lines of text.](/upload/images/layout/succinct/succinct-1.jpg)
Apr 04, 2014 in Layout 2913 views
Succint is a minimal jQuery plugin that can truncate multiple lines of text. It shortens your text to a given size, and then adds an ellipsis to its end.
Specify the elements that you would like to truncate as a selector, and then set the size parameter to the amount you would like to see.
For example, if you would like to truncate all elements with a specific class, ie.<p class="truncate"> to 120 characters...
<script> $(function(){ $('.truncate').succinct({ size: 120 }); }); </script>
By default, the plugin truncates text to 240 characters.
Tagged with:
succinct
truncate
truncate text
truncate multiple lines
shortens text
ellipsis
sub string
sub text
limit text
Related Articles