There is a pure CSS universal solution of "text-overflow: ellipsis"