Skip to main content

stringHelpers

Content

Set of string helpers

capitalizeFirstLetter

Capitalizes first letter of provided string. Returns a new string.

Params

NameTypeRequiredDefault valueDescription
wordstringTrue-String which first letter will be capitalized

Usage example

capitalizeFirstLetter("test");

removeHtmlTags

Removes HTML tags from provided string. Returns a new string.

Params

NameTypeRequiredDefault valueDescription
textstringTrue-String which contains HTML tags

Usage example

removeHtmlTags("<b>some text</b>");

removeEmojis

Removes emojis from provided string. Returns a new string.

Params

NameTypeRequiredDefault valueDescription
textstringTrue-String which contains emojis

Usage example

removeEmojis("Test😄");