开发者

jquery truncate plugin

Is there a jquery truncate plugin that doesn't have trouble wit开发者_运维知识库h 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜