If the <mangle-types> argument is omitted the empty string is returned.
If the <text> argument is omitted the empty string is returned.
<mangle-types> is parsed in the same way that /SET MANGLE_INBOUND is:
No spaces are allowed; separate each option with commas.
The effect is cumulative and are parsed left to right.
ALL_OFF removes ALL_OFF characters (^O)
-ALL_OFF does not remove ALL_OFF characters
ALL removes everything except escapes (including ANSI)
-ANSI does not convert ANSI escape sequences into safe equivalents.
BLINK removes BLINK characters (^F)
-BLINK does not remove BLINK characters
BOLD removes BOLD characters (^B)
-BOLD does not remove BOLD characters
COLOR removes COLOR sequences (^C)
-COLOR does not remove COLOR sequences
ESCAPE converts ESCAPE chars (^[) into a reverse left-bracket.
-ESCAPE does not convert ESCAPE chars into a reverse left-bracket.
ND_SPACE removes non-destructive spaces (^S)
-ND_SPACE does not remove non-destructive spaces
NONE is the same as -ALL – it does not remove anything.
REVERSE removes REVERSE characters (^R)
-REVERSE does not remove REVERSE characters.
ROM_CHAR removes ROM_CHAR characters (^P)
-ROM_CHAR does not remove ROM_CHAR characters.
UNDERLINE removes UNDERLINE characters (^_)
-UNDERLINE does not remove UNDERLINE characters.
The return value is <text> mangled in the way specified by <mangle-types>.