ctrl+k
Enter a search term above to see results...
Enter a search term above to see results...
String helpers provide utilities for manipulating and formatting strings in templates.
Converts a value to JSON string.
Name | Type | Description |
---|---|---|
a | any | The value to stringify |
string
- JSON string representation of the input.
Concatenates all arguments.
Name | Type | Description |
---|---|---|
args | …any | Values to concatenate |
string
- Concatenated string of all arguments.
Capitalizes the first letter of text.
Name | Type | Description |
---|---|---|
text | string | The text to capitalize |
string
- The input text with the first letter capitalized.
Converts text to title case.
Name | Type | Description |
---|---|---|
text | string | The text to convert |
string
- The input text converted to title case.
Tokenizes a string.
Name | Type | Description |
---|---|---|
string | string | The string to tokenize |
string
- The tokenized string.
Escapes HTML special characters in a string.
Name | Type | Description |
---|---|---|
string | string | The string to escape |
string
- The input string with HTML special characters escaped.