12 lines
179 B
PowerShell
12 lines
179 B
PowerShell
|
function Remove-TextStyle {
|
||
|
param (
|
||
|
[Parameter(Mandatory = $true)]
|
||
|
$Text
|
||
|
)
|
||
|
|
||
|
$esc = [char]27
|
||
|
|
||
|
$regex = "$esc"
|
||
|
|
||
|
return $Text -replace $regex,''
|
||
|
}
|