Rule/Jsoup: own text

pull/213/head
M66B 2 years ago
parent 9ee38c931e
commit 2853b37ae4

@ -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…
Cancel
Save