public static void replaceUrlClickAction(final Spannable spannable, final String urlText, final Consumer<URLSpan> newAction) {
        replaceUrlClickAction(spannable, (span, spn, start, end) -> StringUtils.equals(spn.subSequence(start, end), urlText), newAction);
    }
replaces found URLSpans with given text with a new action
main/src/main/java/cgeo/geocaching/utils/html/HtmlUtils.java