truncate

Shortens a string down to the number of characters passed as a parameter. If the number of characters specified is less than the length of the string, an ellipsis (…) is appended to the string and is included in the character count

Input
  • {{ 'Hello world' | truncate: 8 }}
Output
  • Hello...