Is there an equivalent of the Ruby truncate
method in CSS for a specific number of characters?
I have been reading up on combining different CSS methods such as text-overflow:
Setting a max character length in css
but there doesn't seem to be a straight forward solution to replicate the truncate
functionality after a specific number of characters such as:
<%= truncate(this.thing, length: 15, separator: '...') %>