Java URL Sanitize sanitizeUrl(String url)

Here you can find the source of sanitizeUrl(String url)

Description

sanitize Url

License

Apache License

Declaration

public static String sanitizeUrl(String url) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String sanitizeUrl(String url) {
        return url.replaceAll("\\\\", "/");
    }// w w w .  j  a  v a 2s . c  om
}

Related

  1. sanitizeForNextUrl(String url)
  2. sanitizeUri(String uri)
  3. sanitizeUri(String uri)
  4. sanitizeURL(String url)
  5. sanitizeURL(String url)
  6. sanitizeUrl(String url)
  7. sanitizeUrlWithoutProtocol(String url, String protocol)
  8. sanitizeUrlWithProtocol(String url, String defaultProtocol)