转义字符的反转义 在org.apache.commons.lang包中
public static void main(String[] args) throws UnsupportedEncodingException { String url = "http://www.xj.10086.cn/app?service=page/operation.GprsDiscntDispose&listener=initPage&ID=2014092000003483"; url = StringEscapeUtils.unescapeXml(url); System.out.println(url); }
结果:
http://www.xj.10086.cn/app?service=page/operation.GprsDiscntDispose&listener=initPage&ID=2014092000003483
时间: 2024-10-20 02:25:29