fix escape bug

This commit is contained in:
Looly 2025-01-09 19:22:23 +08:00
parent c72f859aff
commit 3fb26abaee

View File

@ -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));
}
}