I have the following line of code :
StringUtils.abbreviate( StringUtils.removeIgnorableCharacters(message.getBody()), 500 )
It is supposed to format the body of message for a RSS feed.
However, passing a message with a body of over 500 characters result in "..." .
The removeIgnorableCharacters() returns the correct body.
Is it reproduceable ?
Thanks,
Is there a newline at the beginning of the message? If there is, it'll chop the message right away (or wherever the \n is) and all you'll get is the text leading up to that newline.
That was the case,
Thanks, I have created my own function though.