Plain text only with alt content

This commit is contained in:
M66B
2022-02-13 11:36:38 +01:00
parent 125be871be
commit f277f5abeb
11 changed files with 55 additions and 43 deletions

View File

@@ -598,8 +598,8 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
MessageHelper.MessageParts parts = helper.getMessageParts();
String body = parts.getHtml(this);
Boolean plain = parts.isPlainOnly();
if (plain != null && plain)
Integer plain = parts.isPlainOnly();
if (plain != null && (plain & 1) != 0)
body = body.replace("<div x-plain=\"true\">", "<div>");
String text = HtmlHelper.getFullText(body);