Saturday, July 29, 2017

Truncate a string


Truncate a string


Truncate a string (first argument) if it is longer than the given maximum string length (second argument). Return the truncated string with a ... ending.

No comments: