Jourkey
Jourkey

Reputation: 34986

jquery truncate plugin

Is there a jquery truncate plugin that doesn't have trouble with HTML in the content?

For instance this plugin does not handle HTML well:

http://www.reindel.com/truncate/

Upvotes: 6

Views: 9928

Answers (3)

Joel Day
Joel Day

Reputation: 1956

Badonkatrunc supports nested content in a non-destructive manner.

(Full disclosure: I am the developer of the plugin.)

Upvotes: 5

chrisboardman
chrisboardman

Reputation: 11

Truncate plugin is good, but for my use it didn't handle p tags well enough for the read more link to reside inline.

I found success with this one: http://henrik.nyh.se/2008/02/jquery-html-truncate

Upvotes: 1

Mutation Person
Mutation Person

Reputation: 30520

I'm assuming you've got the most recent version.

There's a couple more here which might may help. Can't comment on their suitability, though:

http://github.com/jsillitoe/jquery-condense-plugin/tree

http://code.google.com/p/jquery-text-truncate/

Upvotes: 5

Related Questions