Class XmlEscaper
java.lang.Object
io.jenkins.plugins.xmleditor.core.model.XmlEscaper
Decoding of raw XML text and escaping of new values.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringDecodes predefined, character and internal entity references.static StringescapeAttribute(String value, char quote, Predicate<CharSequence> canEncode) Escapes a value for an attribute delimited byquote.static StringescapeText(String value, Predicate<CharSequence> canEncode) Escapes a value for element content; characters the file encoding cannot hold become references.static String
-
Method Details
-
normalizeLineEndings
-
decode
Decodes predefined, character and internal entity references. Unknown entities stay as literal&name;. For attributes, literal whitespace characters are normalized to spaces. -
escapeText
Escapes a value for element content; characters the file encoding cannot hold become references. -
escapeAttribute
Escapes a value for an attribute delimited byquote.
-