}
public List<HTMLNode> removeLinks(HTMLNode root, LinkNodeChecker linkNodeChecker) {
List<HTMLNode> values = new ArrayList<HTMLNode>();
TextRenderer renderer = new TextRenderer(root, TextRenderer.RENDERER);
StringBuilder builder = renderer.getTextValue();
int start = 0;
if(!checkFromStart) start = builder.indexOf("\n\n");
int end = builder.indexOf("\n\n", start+2);
while(end > -1) {
List<HTMLNode> nodes = handle(linkNodeChecker, renderer.getNodePositions(start, end));
if(nodes != null) values.addAll(nodes);
start = end;
end = builder.indexOf("\n\n", start+2);
}
List<HTMLNode> nodes = handle(linkNodeChecker, renderer.getNodePositions(start, builder.length()));
if(nodes != null) values.addAll(nodes);
return values;
}