mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Sanitize edit as new
This commit is contained in:
parent
330da2482c
commit
641e215d99
1 changed files with 1 additions and 4 deletions
|
@ -108,7 +108,6 @@ import com.google.android.material.bottomnavigation.LabelVisibilityMode;
|
|||
import com.google.android.material.snackbar.Snackbar;
|
||||
|
||||
import org.jsoup.Jsoup;
|
||||
import org.jsoup.nodes.Document;
|
||||
import org.jsoup.nodes.Element;
|
||||
import org.openintents.openpgp.OpenPgpError;
|
||||
import org.openintents.openpgp.util.OpenPgpApi;
|
||||
|
@ -2102,9 +2101,7 @@ public class FragmentCompose extends FragmentBase {
|
|||
draft.subject = ref.subject;
|
||||
if (ref.content) {
|
||||
String html = Helper.readText(ref.getFile(context));
|
||||
Document document = Jsoup.parse(html);
|
||||
if (document.body() != null)
|
||||
body = document.body().html();
|
||||
body = HtmlHelper.sanitize(context, html, true);
|
||||
}
|
||||
} else if ("list".equals(action)) {
|
||||
draft.subject = ref.subject;
|
||||
|
|
Loading…
Reference in a new issue