MCPcopy Create free account
hub / github.com/0opslab/opslabJutil / unescape

Method unescape

src/main/java/com/opslab/helper/WebHelper.java:37–42  ·  view source on GitHub ↗

对字符串进行解码 @param str 需要处理的字符串 @param encoding 解码方式 @return 解码后的字符串

(String str, String encoding)

Source from the content-addressed store, hash-verified

35 * @return 解码后的字符串
36 */
37 public static String unescape(String str, String encoding) {
38 if (StringUtil.isEmpty(str)) {
39 return "";
40 }
41 return UrlHelper.decodeQuery(str, encoding);
42 }
43
44
45 /**

Callers 1

testescapeEncodingMethod · 0.95

Calls 2

isEmptyMethod · 0.95
decodeQueryMethod · 0.95

Tested by 1

testescapeEncodingMethod · 0.76