1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-10 14:15:15 +00:00

Rule/Jsoup: own text

This commit is contained in:
M66B 2023-08-14 11:39:17 +02:00
parent 9ee38c931e
commit 2853b37ae4

View file

@ -1342,9 +1342,10 @@ public class EntityRule {
}
if (html != null) {
Document d = JsoupEx.parse(html);
Elements e = d.select(notes.substring(JSOUP_PREFIX.length()));
if (e.size() > 0)
notes = e.text();
String selector = notes.substring(JSOUP_PREFIX.length());
Element e = d.select(selector).first();
if (e != null)
notes = e.ownText();
}
}