Skip to content

@zikeji/hypixel / removeMinecraftFormatting

Function: removeMinecraftFormatting() ​

removeMinecraftFormatting(value): string

This helper will take a string and remove any of Minecraft's formatting sequence. Useful when parsing item lore or similar elements.

Parameters ​

value ​

string

Any string with minecraft formatting.

Returns ​

string

Released under the MIT License.