Rule/Jsoup: own text

pull/213/head
M66B 11 months ago
parent 9ee38c931e
commit 2853b37ae4

@ -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();
}
}

Loading…
Cancel
Save