With the truncate modifier, a text can be truncated to a specific number of characters or whole words after a configurable number of characters.
Arguments
Argument | Description |
---|---|
1 | An integer indicating the length at which the text should be truncated. |
2 | The character(s) to be added after the truncated string, default is empty. |
3 | A boolean value to indicate whether to truncate at the exact character position (true) or on whole words (false). The default value is false. |
4 | A boolean value to apply the truncation at the end of the text (false) or to break in the middle of the text (true). The default value is false. |