Disable the ellipsis option from html-truncate
dnewkerk opened this issue · 0 comments
dnewkerk commented
Thanks for the great plugin! I've found that if I use type="html"
along with clamp="..."
I get a doubled ellipsis: an unexpected plain text one from the html-truncate dependency, and the expected linked one from the clamp option in vue-truncate-collapsed.
For example:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed urna leo, pellentesque eu neq... ...
Looking at the source code, it looks like the the call to h2p should be adjusted to the following:
h2p(string, this.length, { ellipsis: '' })
Based on the example at:
https://github.com/huang47/nodejs-html-truncate#customize-suffix