S
shapper
Hello,
How can I truncate a string so it does not get more than 120
characters?
I would need the last word to not be broken. For example:
For example, for this phrase:
"...and I sent a post to charp forum"
This would be ok:
"...and I sent a post to charp"
This wouldn't be ok:
"...and I sent a post to charp for"
Thanks,
Miguel
How can I truncate a string so it does not get more than 120
characters?
I would need the last word to not be broken. For example:
For example, for this phrase:
"...and I sent a post to charp forum"
This would be ok:
"...and I sent a post to charp"
This wouldn't be ok:
"...and I sent a post to charp for"
Thanks,
Miguel