mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix: 修复 XmlUtil 中转义/反转义方法错误调用 html4 转义/反转义方法的问题。html4 转义会将中文双引号等字符转义为 xml 无法识别的字符,从而导致解析 xml 时出现异常
This commit is contained in:
@@ -320,6 +320,7 @@ public class XmlUtilTest {
|
||||
final String a = "<>";
|
||||
final String escape = XmlUtil.escape(a);
|
||||
Console.log(escape);
|
||||
Console.log(XmlUtil.escape("中文“双引号”"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user