1. cliveportman
  2. /code
  3. /truncate-text-with-ellipsis-using-twig-in-craft-cms-without-a-plugin

Truncate text with ellipsis using Twig in Craft CMS without a plugin

{{ entry.title | length > 75 ? entry.title | slice(0, 75) ~ '...' : entry.title }}

No plugin required, which is generally my preference. Hat tip.