Twig and craft snippets
//twig ellipsis {{ myentity.text|length > 50 ? myentity.text|slice(0, 50) ~ '...' : myentity.text }}