powered by
Shortens text to a maximum width (character length). If the text is longer, it is truncated and an ellipsis (default "...") is appended.
"..."
whapi_clip_text(x, width = 420, ellipsis = "...")
A clipped string with ellipsis if needed.
Character string to clip.
Maximum length of the output including ellipsis.
Character to indicate truncation.
whapi_clip_text("This is a very long sentence that should be clipped.", width = 20) #> "This is a very long..."
Run the code above in your browser using DataLab