This version is old school.
Please find jQuery plugins on npm.
trunk8 Intelligent Text Truncation
by Rick Viscomi
trunk8 is an intelligent text truncation plugin to jQuery. When applied to a large block of text, trunk8 will cut off just enough text to prevent it from spilling over. Unlike conventional truncation that just limits the character length of text, trunk8 measures the content area for spill-over and intelligently chooses the text that best fits in the given space.
Versions
Version
Date
1.3.3-4
Feb 04, 2013