Truncate rich text helper