Class XmlEscape

All Implemented Interfaces:
Chain<StrReplacer,ReplacerChain>, Replacer<CharSequence>, Serializable, Iterable<StrReplacer>
Direct Known Subclasses:
Html4Escape

public class XmlEscape extends ReplacerChain
XML特殊字符转义
见:https://stackoverflow.com/questions/1091945/what-characters-do-i-need-to-escape-in-xml-documents
         & (ampersand) 替换为 &amp;
         < (less than) 替换为 &lt;
         > (greater than) 替换为 &gt;
         " (double quote) 替换为 &quot;
         ' (single quote / apostrophe) 替换为 &apos;
 
Since:
5.7.2
Author:
looly
See Also:
  • Field Details

    • BASIC_ESCAPE

      protected static final String[][] BASIC_ESCAPE
  • Constructor Details

    • XmlEscape

      public XmlEscape()
      构造