mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-25 23:20:53 +01:00
Refactoring
This commit is contained in:
@@ -247,4 +247,9 @@ public class HtmlHelper {
|
||||
Html.escapeHtml(MessageHelper.getFormattedAddresses(message.from, true)),
|
||||
sanitize ? sanitize(html, true) : getBody(html));
|
||||
}
|
||||
|
||||
static String getPreview(String body) {
|
||||
String text = (body == null ? null : Jsoup.parse(body).text());
|
||||
return (text == null ? null : text.substring(0, Math.min(text.length(), 250)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user