@Override
                    public void onClick(final @NonNull View widget) {
                        newAction.accept(span);
                    }
replaces found URLSpans with given condition with a new action
main/src/main/java/cgeo/geocaching/utils/html/HtmlUtils.java