limit
Limits the length of text to max_length characters. If the text is longer than max_length, it will be truncated and the end string will be appended.
Usage
{{limit text max_length end="..."}}
Arguments
text
The input string to limit.
max_length
The maximum number of characters to return.
end
The string to append when text is truncated. Defaults to ....
Examples
Limit the email body to 100 characters
{{limit email.body 100}}
This is a very long email body that has been truncated to only show the first one hundred characters...
Limit with a custom end string
{{limit email.subject 50 end=" [truncated]"}}
This is a long subject line that was cut [truncated]
Limit with no end string
{{limit email.body 50 end=""}}
This is a very long email body that has been trunc