abbr()
Usage
abbr(string, maxLength)
Description
Abbreviates the given string to the given maximum length and replaces the remaining character with the ellipsis character (…).
Example
${abbr('A long string that is too long to be displayed entirely.', 20)}
results in
A long string that…