Small improvement

This commit is contained in:
M66B
2019-09-07 10:57:17 +02:00
parent 75a8b7a4da
commit b64f68d551

View File

@@ -418,7 +418,10 @@ public class Log {
sb.append(ex.toString()).append("\n").append(android.util.Log.getStackTraceString(ex));
if (log != null)
sb.append(log);
String body = "<pre>" + sb.toString().replaceAll("\\r?\\n", "<br>") + "</pre>";
String body = "<div>" +
TextUtils.htmlEncode(sb.toString())
.replaceAll("\\r?\\n", "<br>") +
"</div>";
EntityMessage draft;