brunodd
brunodd

Reputation: 2584

dotdotdot - Wrap text at the first full stop

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

Upvotes: 0

Views: 188

Answers (0)

Related Questions