Fixed line breaks plain text messages

pull/156/head
M66B 6 years ago
parent 3a388b7dff
commit 7bd1b0171f

@ -811,7 +811,7 @@ public class MessageHelper {
} }
if (part.isMimeType("text/plain") || text) { if (part.isMimeType("text/plain") || text) {
result = Html.escapeHtml(result); result = TextUtils.htmlEncode(result);
result = result.replaceAll("\\r?\\n", "<br />"); result = result.replaceAll("\\r?\\n", "<br />");
result = "<span>" + result + "</span>"; result = "<span>" + result + "</span>";
} }

Loading…
Cancel
Save