mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-25 23:20:53 +01:00
Send proper html
This commit is contained in:
@@ -229,9 +229,9 @@ public class HtmlHelper {
|
||||
static String getQuote(Context context, long id, boolean sanitize) throws IOException {
|
||||
EntityMessage message = DB.getInstance(context).message().getMessage(id);
|
||||
String html = EntityMessage.read(context, id);
|
||||
return String.format("<p>%s %s:</p><blockquote>%s</blockquote>",
|
||||
return String.format("<p>%s %s:</p>\n<blockquote>%s</blockquote>",
|
||||
Html.escapeHtml(new Date(message.received).toString()),
|
||||
Html.escapeHtml(MessageHelper.getFormattedAddresses(message.from, true)),
|
||||
sanitize ? HtmlHelper.sanitize(html) : html);
|
||||
sanitize ? sanitize(html) : getBody(html));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user