Skip to main content

strip_formatting_codes

Function strip_formatting_codes 

Source
fn strip_formatting_codes(text: &str) -> String
Expand description

Strips Minecraft formatting codes (§ followed by a character) from a string.

This is equivalent to vanilla’s ChatFormatting.stripFormatting().