encodeAttributeValueWithQuotes method

String encodeAttributeValueWithQuotes(
  1. String input,
  2. XmlAttributeType type
)

Encodes a string to be serialized as XML attribute value together with its corresponding quotes.

Implementation

String encodeAttributeValueWithQuotes(String input, XmlAttributeType type) =>
    '${type.token}${encodeAttributeValue(input, type)}${type.token}';