Hello!
When trying to set MapiMessage
body, which contains "<br>& "
(note, that there’s a space at the end), I’m getting the following exception:
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at java.lang.String.charAt(String.java:658)
at com.aspose.email.yq.a(SourceFile:545)
at com.aspose.email.yq.a(SourceFile:424)
at com.aspose.email.yq.a(SourceFile:273)
at com.aspose.email.bbc.g(SourceFile:333)
at com.aspose.email.MapiMessageItemBase.setBodyContent(SourceFile:1389)
It can be reproduced with the following code snippet:
MapiMessage message = new MapiMessage();
message.setBodyContent("<html><body>Something <br>& something</body></html>", BodyContentType.Html);
Thanks!