method

truncate

truncate(text)
public

Truncates text at the end of the first word after the character_limit.