mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix escape bug
This commit is contained in:
@@ -32,10 +32,6 @@ public class XmlUnescape extends ReplacerChain {
|
||||
* 基础反转义符
|
||||
*/
|
||||
protected static final String[][] BASIC_UNESCAPE = InternalEscapeUtil.invert(XmlEscape.BASIC_ESCAPE);
|
||||
/**
|
||||
* issue#1118,新增{@code '}反转义
|
||||
*/
|
||||
protected static final String[][] OTHER_UNESCAPE = new String[][]{new String[]{"'", "'"}};
|
||||
|
||||
/**
|
||||
* 构造
|
||||
@@ -43,6 +39,5 @@ public class XmlUnescape extends ReplacerChain {
|
||||
public XmlUnescape() {
|
||||
addChain(new LookupReplacer(BASIC_UNESCAPE));
|
||||
addChain(new NumericEntityUnescaper());
|
||||
addChain(new LookupReplacer(OTHER_UNESCAPE));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user