Revised revisions

This commit is contained in:
M66B
2019-11-19 21:53:12 +01:00
parent 482c7eb92c
commit daadc58e97
14 changed files with 2224 additions and 448 deletions

View File

@@ -48,6 +48,8 @@ import androidx.recyclerview.widget.RecyclerView;
import com.google.android.material.snackbar.Snackbar;
import com.sun.mail.imap.IMAPFolder;
import org.jsoup.nodes.Document;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.InputStream;
@@ -135,8 +137,10 @@ public class ActivityEML extends ActivityBase {
result.parts = helper.getMessageParts();
String html = result.parts.getHtml(context);
if (html != null)
result.body = HtmlHelper.fromHtml(HtmlHelper.sanitize(context, html, false, false));
if (html != null) {
Document document = HtmlHelper.sanitize(context, html, false, false);
result.body = HtmlHelper.fromHtml(document.html());
}
return result;
}