encodeXmlText function

String encodeXmlText (
  1. String input
)

Encode a string to be serialized as an XML text node.

Implementation

String encodeXmlText(String input) =>
    input.replaceAllMapped(_textPattern, _textReplace);