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/
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/
Badonkatrunc supports nested content in a non-destructive manner.
(Full disclosure: I am the developer of the plugin.)
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With