unformat

Removes valid formatting codes from a message. Note that this function also removes uppercase formatting codes because they're supported by Minecraft (but not by Minecraft Pocket Edition).

string
unformat
(
string message
)

Examples

assert(unformat("§agreen") == "green");
assert(unformat("res§Ret") == "reset");
assert(unformat("§xunsupported") == "§xunsupported");

Meta