mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-27 08:01:50 +01:00
Improved formatting
This commit is contained in:
@@ -22,7 +22,6 @@ package eu.faircode.email;
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.text.Html;
|
||||
import android.text.Spanned;
|
||||
import android.text.TextUtils;
|
||||
import android.view.MenuItem;
|
||||
@@ -131,8 +130,7 @@ public class ActivityCompose extends ActivityBilling implements FragmentManager.
|
||||
CharSequence body = intent.getCharSequenceExtra(Intent.EXTRA_TEXT);
|
||||
if (body != null)
|
||||
if (body instanceof Spanned)
|
||||
args.putString("body",
|
||||
Jsoup.clean(Html.toHtml((Spanned) body), Whitelist.relaxed()));
|
||||
args.putString("body", Jsoup.clean(HtmlHelper.toHtml((Spanned) body), Whitelist.relaxed()));
|
||||
else
|
||||
args.putString("body", body.toString()); // TODO: clean?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user