The input may be of class ansi_string class, this is also dropped from the result.

ansi_strip(string)

Arguments

string

The input string.

Value

The cleaned up string.

See also

Other low level ANSI functions: ansi_has_any(), ansi_hide_cursor(), ansi_regex()

Examples

ansi_strip(col_red("foobar")) == "foobar"
#> [1] TRUE