normalizeAttributeValue

fnstring normalizeAttributeValue(string value) @safe

Normalizes an XML attribute value.

XML 1.0 requires that literal whitespace characters in attribute values are normalized:

  • \r, \n, and \t are replaced with a single space (`' '`).

    Parameters

    valueInput attribute value.

    Returns

    The normalized attribute value.