Package groovy.xml.markupsupport
package groovy.xml.markupsupport
XML character filtering and escaping for safe markup generation.
Filters for escaping XML text, attributes, quotes, control characters, and surrogate pairs. Prevents injection and ensures well-formed output.
-
ClassesClassDescriptionReplaces XML-disallowed control characters and Unicode noncharacters with
U+FFFD.Escapes double quotes for XML attribute output.Escapes single quotes for XML attribute output.Replaces XML-disallowed control characters withU+FFFD.Escapes XML attribute characters that must be written as numeric entities.Escapes the standard XML text markup characters.Replaces surrogate characters that cannot be emitted directly withU+FFFD.