jQuery Shorten. Automatically cuts off long text to fit in a space, with a custom ending you choose.

web5.me/jquery/plugins/shorten/shorten.doc.html

Vaya's read on this project

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

Updates

September 2013
  • Bower compatibility. Designate v0.9.0. jQuery not included anymore. T…
  • Add radix to parseInt. Thanks @pdjota!
  • Finally a proper readme!
April 2012
  • Some refactoring for efficiency
  • test.html: Wraps the the shorten calls in a function so I can test re…
  • Implement @chrisbartley use case: Re-run shorten after changing the t…
February 2011
  • Updated documentation...
  • Aaand here's the minified version ;)
  • Merged gonchuki's canvas detection fix into master. Thanks gonchuki!
January 2011
  • fix broken canvas detection, now works on IE8 and lower
  • Moar better tests! A lot of different and common use cases are tested…
  • - Test for Canvas Text support, not just for Canvas support.
  • - Fix: Don't use CSS text-overflow method if user has defined a width…
  • * Potentially breaking changes *
December 2010
  • Canvas method: The order of properties in the font declaration was wr…
  • Fixed infinite loop that occured in some cases:
  • Removed accidental global var (text). Simplified initial var declarat…
  • tooltip functionality was missing completely in the code. No idea how…
November 2010
  • Amended documentation.
  • The new jquery files were not added. Hmm..