TextHandler textHandler = new TextHandler();
if(start == null || start.trim().length() == 0) return pathParser.toPath(node);
start = textHandler.trim(start);
HTMLNode startNode = textHandler.findByText(node, start, decoder);
if(end == null || end.trim().length() == 0) {
return startNode != null ? pathParser.toPath(startNode) : pathParser.toPath(node);
}
end = textHandler.trim(end);
HTMLNode endNode = textHandler.findByText(node, end, decoder);
if(endNode == null)