Detailed reference of prototypes, properties and methods available in the
Javascript environment of your Helma web applications.

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')
Methods
lowercase_filter(input)
Transforms a string to lowercase.
parameters
input
see
uppercase_filter(input)
Transforms a string to uppercase.
parameters
input
see
capitalize_filter(input)
Transforms the first Character of a string to uppercase.
parameters
input
see
titleize_filter(input)
Transforms the first Character of each word in a string to uppercase.
parameters
input
see
truncate_filter(limit, clipping)
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
trim_filter(input)
Removes leading and trailing whitespaces.
parameters
input
see
stripTags_filter(input)
Removes all tags from a String. Currently simply wraps Helma's stripTags-method.
parameters
input
see
escapeXml_filter(input)
Escapes the characters in a String using XML entities. Currently simply wraps Helma's encodeXml-method.
parameters
input
see
escapeHtml_filter(input)
Escapes the characters in a String using HTML entities.
parameters
input
see
escapeUrl_filter(charset)
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
escapeJavaScript_filter(input)
Escapes a string so it may be used in JavaScript String definitions.
parameters
input
linebreakToHtml_filter(input)
Replaces linebreaks with HTML linebreaks.
parameters
input
replace_filter(old, new)
Performs a string replacement.
parameters
old
new
substring_filter(from, to)
Returns a substring. Simply wraps the javascript method 'substring'.
parameters
from
to
see
dateFormat_filter(format)
Returns a formatted string representation of a Date. Simply wraps javascripts Date.format-method.
parameters
format
see
Fri, 05 Feb 2010 17:40:05 GMT.

core framework

optional modules

java libraries

properties files