If you want to crop the div to a specific size, rather than the exact number of characters, you can simply specify the div you want and specify overflow: hidden
to copy content that doesn't fit.
If you make sure that the height of the div is the set of line heights of the text, you will not have the content trimmed in the (vertical) middle of the line.
source share