Method RemoveAnsiEscapeCodes
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.common.dll
RemoveAnsiEscapeCodes(string)
Strip ANSI color escape codes (in the form of ESC[1;2m) from a string value.
public static string RemoveAnsiEscapeCodes(string message)
Parameters
messagestringThe message that may contain ANSI color escape codes
Returns
- string
The message without the ANSI color escape codes