Implements some useful macro filters.
To use this optional module, its repository needs to be added to the application, for example by calling app.addRepository('modules/core/Filters.js')
To use this optional module, its repository needs to be added to the application, for example by calling app.addRepository('modules/core/Filters.js')
Methods
Transforms a string to lowercase.
parameters
input |
see
Transforms a string to uppercase.
parameters
input |
see
Transforms the first Character of a string to uppercase.
parameters
input |
see
Transforms the first Character of each word in a string
to uppercase.
parameters
input |
see
Cuts a String at a certain position, and
optionally appends a suffix, if truncation
has occurred.
parameters
limit | Maximum length | |
clipping | Appended String, default is the empty String |
see
Removes leading and trailing whitespaces.
parameters
input |
see
Removes all tags from a String.
Currently simply wraps Helma's stripTags-method.
parameters
input |
see
Escapes the characters in a String using XML entities.
Currently simply wraps Helma's encodeXml-method.
parameters
input |
see
Escapes the characters in a String using HTML entities.
parameters
input |
see
Escapes the characters in a String to be suitable
to use as an HTTP parameter value.
parameters
charset | Optional String. The name of a supported character encoding. |
see
Escapes a string so it may be used in JavaScript String
definitions.
parameters
input |
Returns a substring. Simply wraps the javascript
method 'substring'.
parameters
from | ||
to |
see
Returns a formatted string representation of a Date.
Simply wraps javascripts Date.format-method.
parameters
format |
see