mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix escape bug
This commit is contained in:
parent
c72f859aff
commit
3fb26abaee
@ -32,10 +32,6 @@ public class XmlUnescape extends ReplacerChain {
|
|||||||
* 基础反转义符
|
* 基础反转义符
|
||||||
*/
|
*/
|
||||||
protected static final String[][] BASIC_UNESCAPE = InternalEscapeUtil.invert(XmlEscape.BASIC_ESCAPE);
|
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() {
|
public XmlUnescape() {
|
||||||
addChain(new LookupReplacer(BASIC_UNESCAPE));
|
addChain(new LookupReplacer(BASIC_UNESCAPE));
|
||||||
addChain(new NumericEntityUnescaper());
|
addChain(new NumericEntityUnescaper());
|
||||||
addChain(new LookupReplacer(OTHER_UNESCAPE));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user