jQuery Truncate. Shorten long text to fit a space, from the end, middle, or beginning.

github.com/tbasse/jquery-truncate

Vaya's read on this project

Problem, audience, market, and the verdict — sign in to see it.

Updates

April 2015
  • Update demo.html
  • Merge pull request #19 from zacwitte/master
  • added line-height css property to take into account when calculating …
June 2014
  • Merge branch 'release/1.4'
  • fix style and update minified version
  • fix bug from 02158d11ae3bac27730f79868792f87c235ac013
May 2014
  • Merge pull request #17 from kriserickson/master
  • Update jquery.truncate.js
  • Add assumeSameStyle doc.
  • Added assumeSameStyle option which caches the style and the $truncate…
August 2013
  • Merge pull request #16 from dfournier/fix_escape_html
July 2013
  • escape html
June 2013
  • Merge pull request #15 from eric/fix-no-options-passed
  • Fix the case where no options were passed
April 2013
  • fixed indentation. tabs to 2 spaces.
  • updated demo.html
  • updated minified version
  • reformatting and refactoring to pass jshint
March 2013
  • Merge pull request #12 from AlexaWebhead/patch-1
  • Fixed minified version of truncate script