Cut the number of lines of a textbox, adding an ellipsis if needed. It works using words or characters.

truncate