mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-08 10:03:51 +02:00
Meta excerpt
This commit is contained in:
@@ -1464,7 +1464,8 @@ public class MessageHelper {
|
||||
if (TextUtils.isEmpty(charset)) {
|
||||
// <meta charset="utf-8" />
|
||||
// <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
Document d = JsoupEx.parse(result);
|
||||
String excerpt = result.substring(0, Math.min(1000, result.length()));
|
||||
Document d = JsoupEx.parse(excerpt);
|
||||
for (Element meta : d.select("meta")) {
|
||||
if ("Content-Type".equalsIgnoreCase(meta.attr("http-equiv"))) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user