Hi i am shortening long strings using ellipsis and putting dotes(...) at end. The problem is if a string contains space then i want to break string first then if it overflows then put dotes(...). E.g. I have two strings
Choreographers Farm Houses
If i don't use ellipsis then on resizing window Choreographers overlaps Farm Houses...
When i use ellipsis then on resizing window i get
Choreogra... Farm Ho...
What i want is
Choreogra... Farm
Houses
And in case of more smaller screen
Chore... Farm
Hous...
Fiddle: https://jsfiddle.net/7fpt4m5e/3/