doc/ folder files tcl-commands.doc file, Please remenber to check it.
stripcodes <strip-flags> <string>
Description: strips specified control characters from the string given. strip-flags can be any combination of the following:
b remove all boldface codes
c remove all color codes
r remove all reverse video codes
u remove all underline codes
a remove all ANSI codes
g remove all ctrl-g (bell) codes
Returns: the stripped string
Module: core
Example: set striped_text [stripcodes "bcruag" "$text"]