Modifiers

truncate

The truncate modifier trims text to a number of words.

Example#

php
{{ content | truncate(30) }}

truncate takes a positive number and appends ... when the value is trimmed.