Package | Description |
---|---|
cn.hutool.core.text.escape |
提供各种转义和反转义实现
|
cn.hutool.core.text.replacer |
文本替换类抽象及实现
|
Modifier and Type | Class and Description |
---|---|
class |
Html4Escape
HTML4的ESCAPE
参考:Commons Lang3
|
class |
Html4Unescape
HTML4的UNESCAPE
|
class |
NumericEntityUnescaper
形如'的反转义器
|
class |
XmlEscape
XML特殊字符转义
见:https://stackoverflow.com/questions/1091945/what-characters-do-i-need-to-escape-in-xml-documents & (ampersand) 替换为 & < (less than) 替换为 < > (greater than) 替换为 > " (double quote) 替换为 " ' (single quote / apostrophe) 替换为 ' |
class |
XmlUnescape
XML的UNESCAPE
|
Modifier and Type | Class and Description |
---|---|
class |
LookupReplacer
查找替换器,通过查找指定关键字,替换对应的值
|
class |
ReplacerChain
字符串替换链,用于组合多个字符串替换逻辑
|
Modifier and Type | Method and Description |
---|---|
Iterator<StrReplacer> |
ReplacerChain.iterator() |
Modifier and Type | Method and Description |
---|---|
ReplacerChain |
ReplacerChain.addChain(StrReplacer element) |
Constructor and Description |
---|
ReplacerChain(StrReplacer... strReplacers)
构造
|
Copyright © 2024. All rights reserved.