This content has been marked as final. Show 6 replies
Thanks for the reply but this function gives me the same output as I had before. It limits the string that's good, but if it has reached the limit it cuts of the word and puts "..." after it. I'm searching for a way to not cut up the final word into pieces, so the last word should be completely visible and after that there should be 3 dots "...", not in the middle of a word.
if that one won't do it, try this one:
"Abbreviates a given string to roughly the given length, stripping any
tags, making sure the ending doesn't chop a word in two, and adding an
ellipsis character at the end."
Retrieve all 280 characters, and then use the string functions to search backwards and remove all characters AFTER the LAST space in the 280 character string.
The online documentation will tell you all you need to know about string manipulation functions.
Thanks, this works like a charm :)