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:
parent
9ee38c931e
commit
2853b37ae4
1 changed files with 4 additions and 3 deletions
|
@ -1342,9 +1342,10 @@ public class EntityRule {
|
||||||
}
|
}
|
||||||
if (html != null) {
|
if (html != null) {
|
||||||
Document d = JsoupEx.parse(html);
|
Document d = JsoupEx.parse(html);
|
||||||
Elements e = d.select(notes.substring(JSOUP_PREFIX.length()));
|
String selector = notes.substring(JSOUP_PREFIX.length());
|
||||||
if (e.size() > 0)
|
Element e = d.select(selector).first();
|
||||||
notes = e.text();
|
if (e != null)
|
||||||
|
notes = e.ownText();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue