mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-31 20:25:38 +00:00
Cleanup after parse
This commit is contained in:
parent
31b86db79d
commit
5d034b7b90
1 changed files with 2 additions and 2 deletions
|
@ -2554,6 +2554,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
args.putBoolean("signed_data", signed_data);
|
||||
|
||||
Document document = JsoupEx.parse(file);
|
||||
HtmlHelper.cleanup(document);
|
||||
|
||||
// Add embedded messages
|
||||
for (EntityAttachment attachment : attachments)
|
||||
|
@ -2600,7 +2601,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
Log.e(ex);
|
||||
}
|
||||
|
||||
HtmlHelper.cleanup(document);
|
||||
HtmlHelper.removeRelativeLinks(document);
|
||||
|
||||
// Check for inline encryption
|
||||
|
@ -4708,12 +4708,12 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
long id = args.getLong("id");
|
||||
File file = EntityMessage.getFile(context, id);
|
||||
Document document = JsoupEx.parse(file);
|
||||
HtmlHelper.cleanup(document);
|
||||
|
||||
if (Boolean.TRUE.equals(message.plain_only) && monospaced_pre)
|
||||
HtmlHelper.restorePre(document);
|
||||
HtmlHelper.guessSchemes(document);
|
||||
HtmlHelper.autoLink(document);
|
||||
HtmlHelper.cleanup(document);
|
||||
HtmlHelper.setViewport(document, overview_mode);
|
||||
HtmlHelper.embedInlineImages(context, message.id, document, true);
|
||||
if (disable_tracking)
|
||||
|
|
Loading…
Reference in a new issue