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) {
  final quote = _attributeQuote[type];
  return '$quote${encodeAttributeValue(input, type)}$quote';
}