Skip to main content
value
string
required
The string to truncate.
maxLen
number
required
Maximum allowed length (defaults to MAX_CONTENT_LENGTH).
return
The original string if short enough, or a truncated copy.