Truncate viewed text only

This commit is contained in:
M66B
2020-03-25 20:25:06 +01:00
parent 5a730c246b
commit 20fe6314ad
5 changed files with 36 additions and 27 deletions

View File

@@ -177,7 +177,8 @@ public class ActivityEML extends ActivityBase {
String html = result.parts.getHtml(context);
if (html != null) {
Document document = HtmlHelper.sanitize(context, html, false, true);
Document parsed = JsoupEx.parse(html);
Document document = HtmlHelper.sanitizeView(context, parsed, false);
result.body = HtmlHelper.fromHtml(document.html());
}