We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8bf6cf commit dfb2523Copy full SHA for dfb2523
src/Microsoft.PowerShell.ConsoleGuiTools/OutConsoleGridviewCmdletCommand.cs
@@ -111,6 +111,16 @@ baseObject is PSReference ||
111
ThrowTerminatingError(error);
112
}
113
114
+ // Remove any potential ANSI escape codes from strings
115
+ foeach (var property in input.Properties)
116
+ {
117
+ if (property.Value is string)
118
119
+ var stringDecorated = new StringDecorated(property.Value as string);
120
+ property.Value = stringDecorated.ToString(OutputRendering.PlainText);
121
+ }
122
123
+
124
_psObjects.Add(input);
125
126
0 commit comments