HTML Truncator
March 10, 2008 - 9:42pm — malesca
"More"/"less" style truncation. Handles HTML gracefully: doesn't split inside HTML entities, doesn't orphan end-tags and so on.
Example usage:
$(function() {
$('.example').truncate({max_length: 24});
});Overriding all defaults:
$(function() {
$('.example').truncate({max_length: 24, more: "plus it", less: "nevermind"});
});I will try to keep this page up-to-date but may forget. See http://github.com/henrik/jquery.truncator.js for the latest version.
Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 1.0.1 | 2008-Sep-24 | 2.75 KB | Recommended for 1.0.x | ||
