A simple way of truncating the textual content of elements to a specific number of lines