Simplification

This commit is contained in:
M66B
2019-09-23 18:56:15 +02:00
parent f5b727a3c1
commit 444e0ebef8
2 changed files with 12 additions and 9 deletions

View File

@@ -2070,7 +2070,8 @@ public class FragmentCompose extends FragmentBase {
data.draft.subject = args.getString("subject", "");
body = args.getString("body", "");
body = body.replaceAll("\\r?\\n", "<br>");
if (!TextUtils.isEmpty(body))
body = HtmlHelper.sanitize(context, body, false);
if (answer > 0) {
EntityAnswer a = db.answer().getAnswer(answer);