Package com.luna.common.escape
Class XmlEscape
java.lang.Object
com.luna.common.replacer.StrReplacer
com.luna.common.replacer.ReplacerChain
com.luna.common.escape.XmlEscape
- All Implemented Interfaces:
Chain<StrReplacer,,ReplacerChain> Replacer<CharSequence>,Serializable,Iterable<StrReplacer>
- Direct Known Subclasses:
Html4Escape
XML特殊字符转义
见:https://stackoverflow.com/questions/1091945/what-characters-do-i-need-to-escape-in-xml-documents
见: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) 替换为 '
- Since:
- 5.7.2
- Author:
- looly
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.luna.common.replacer.ReplacerChain
addChain, iterator, replaceMethods inherited from class com.luna.common.replacer.StrReplacer
replaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
BASIC_ESCAPE
-
-
Constructor Details
-
XmlEscape
public XmlEscape()构造
-