protected String processParamProtocol(String string) {
        string = decodeEntities(string);
        Pattern p = Pattern.compile("^([^:]+):", REGEX_FLAGS_SI);
        Matcher m = p.matcher(string);
        if (m.find()) {
            String protocol = m.group(1);
            if (!inArray(protocol, _vAllowedProtocols)) {
                // bad protocol, turn into local anchor link instead
                string = "#" + string.substring(protocol.length() + 1, string.length());
                if (string.startsWith("#//"))
                    string = "#" + string.substring(3, string.length());
            }
        }

        return string;
    }