dotdotdot - Wrap text at the first full stop

193 Views Asked by At

I am trying to cut off the text at the first full stop using dotdotdot plugin. However I can't make it work. I tried word-wrap: break-word; but it didn't work. How to cut off the text at the first full stop?

I've set these options:

$("#wrapper").dotdotdot({
 wrap: 'word',
 watch: true,
 ellipsis: '...',
 fallbackToLetter: false,
  lastCharacter : {
    remove: [ ',', ';'],
    noEllipsis: ['.']
 },
});

My example

0

There are 0 best solutions below