Not sure if this is the one you are working, here is one jquery plugin, it is pretty good http://henrik.nyh.se/examples/truncator/ as it allows html/formatting in the trimmed text.
Vishal
-------------------------------------------------------
Vishal
-------------------------------------------------------