mux.strip_style

Removes styled-text markup and ANSI styling from a string.

Function

Synopsis

mux.strip_style( value )

Arguments

string value
Styled or unstyled text.

Returns

string plain
The visible unstyled text.

Examples

local command = mux.strip_style(styled_name)

Notes

This is useful before using player-facing text as a command or identifier.

See Also