vue-truncate-collapsed icon indicating copy to clipboard operation
vue-truncate-collapsed copied to clipboard

Disable the ellipsis option from html-truncate

Open dnewkerk opened this issue 3 years ago • 0 comments

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

dnewkerk avatar Mar 16 '21 19:03 dnewkerk