This looks more like a mistake than the desired behavior, but it will be a breaking change if we replace it.
String.Trim() is filtering much more characters than :
|
internal static readonly char[] WhitespaceChars = new char[] { ' ', '\t', '\n', '\r' }; |
runtime/src/libraries/System.Private.Xml/src/System/Xml/Serialization/Xmlcustomformatter.cs
Line 430 in 97e13f4
This looks more like a mistake than the desired behavior, but it will be a breaking change if we replace it.
String.Trim() is filtering much more characters than :
runtime/src/libraries/System.Private.Xml/src/System/Xml/XmlConvert.cs
Line 1370 in 97e13f4