public static String encodeUrl ( final String urlStr ) { if ( Util . empty ( urlStr ) ) { return urlStr ; } // Percent Encode String percentEncode = percentEncodeUrl ( urlStr ) ; // XML Enocde return encode ( percentEncode ) ; }
Encode URL for XML .