Built-In Namespace String
Method Attributes | Method Name and Description |
---|---|
endsWith(token, ignoreCase)
Check if the String ends with token
|
|
Escape double quotes, i.e.
|
|
Escape quotes, i.e.
|
|
htmlEncode(display, tabs)
HTML-Encode the supplied input
Parameters:
this/source {string}
The text to be encoded.
|
|
replaceAll(token, newToken, ignoreCase)
ReplaceAll by Fagner Brack (MIT License)
Replaces all occurrences of a substring in a string
|
|
startsWith(token, ignoreCase)
Check if the String starts with token
|
|
Un-escape double quotes, i.e.
|
|
Un-escape quotes, i.e.
|
Method Detail
endsWith(token, ignoreCase)
Check if the String ends with token
Defined in: StringExtensions.js.
Defined in: StringExtensions.js.
- Parameters:
- token
- ignoreCase
escapeDoubleQuotes()
escapeQuotes()
htmlEncode(display, tabs)
HTML-Encode the supplied input
Parameters:
this/source {string}
The text to be encoded.
Defined in: StringExtensions.js.
Defined in: StringExtensions.js.
- Parameters:
- display
- {boolean}
(optional)
The output is intended for display.
If true (or undefined):
* Tabs will be expanded to the number of spaces
indicated by the 'tabs' argument.
* Line breaks will be converted to
. If false: * Tabs and linebreaks get turned into ____; entities just like all other control characters. - tabs
- {number} (optional) The number of spaces to expand tabs to. (Ignored if the 'display' parameter evaluates to false or if tabs is not >= 0.) Default: undefined (do not replace tabs with spaces) version 2010-11-08 (modified: 2012-12-20)
replaceAll(token, newToken, ignoreCase)
ReplaceAll by Fagner Brack (MIT License)
Replaces all occurrences of a substring in a string
Defined in: StringExtensions.js.
Defined in: StringExtensions.js.
- Parameters:
- token
- newToken
- ignoreCase
startsWith(token, ignoreCase)
Check if the String starts with token
Defined in: StringExtensions.js.
Defined in: StringExtensions.js.
- Parameters:
- token
- ignoreCase
unescapeDoubleQuotes()
unescapeQuotes()