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