[Home]
>
Snippets
>
Languages
>
JavaScript
>
Strings
Languages » JavaScript » Strings (Other)
Capitalize a string
Decapitalize a string
Decode HTML entities
Escape HTML special characters
Generate a hash of a string
Prepend a line number to each line of a text document
Repeat a string
Replace all line breaks with br elements
Replace all tab characters with spaces
Replace multiple spaces with a single space
Replace the first given number of characters of a string with another character
Reverse a string
Reverse the order of lines of a text
Strip ANSI codes from a string
Trim slashes at the beginning and the end of a string
Trim some character
Trim the file extension from a file name
Truncate a string at full words