joelday / Badonkatrunc

jQuery plugin for dynamic text layout and truncation
http://badonkatrunc.com
Other
32 stars 10 forks source link

Appears to truncate inconsistently between plain text and html elements #4

Open ticky opened 11 years ago

ticky commented 11 years ago

I've been using Badonkatrunc on a site for work, and I'm finding that if an element contains html elements, Badonkatrunc will truncate to after the last space which fits, while if the content is plain text, it truncates to before the same space.

I've put together an example of this behaviour on Codepen. As you can see, there's a trailing space in the <a/> element, but not in the plain text content.