Returns a string shortened to a maximum length
If the string is already less than the max length, return the string. Else return the string, shortened to max - 3 and append three dots ("...").
max
max - 3
the maximum length of the string to return
the input string
Returns a string shortened to a maximum length
If the string is already less than the
max
length, return the string. Else return the string, shortened tomax - 3
and append three dots ("...").