jQuery collapser is a small and useful jQuery plugin for collapsing/truncating an element text by words, characters and lines with a flexible API. It is an all in one plugin with multiple functionalities to truncate a paragraph or any element as desired.
This is different from https://github.com/martindsouza/jquery-collapser/commit/67db5afad17ac8cdca38c6063dc94ba4fa48405e as it has an additional rendering of HTML on initialization. Otherwise, there can be a moment when the displayed collapsed text is not rendered properly.