dojox.dtl.filter.strings
dojo.require("dojox.dtl.filter.strings");
defined in dojox/dtl/filter/strings.js
FunctionsBack to top
Adds slashes - useful for passing strings to JavaScript, for example.
Capitalizes the first character of the value

Centers the value in a field of a given width

Removes all values of arg from the given string
Replaces ampersands with ``&`` entities

Format a number according to arg
Displays text with line numbers

Converts a string into all lowercase
Returns the value turned into a list. For an integer, it's a list of digits. For a string, it's a list of characters.

Converts to lowercase, removes non-alpha chars and converts spaces to hyphens

Formats the variable according to the argument, a string formatting specifier. This specifier uses Python string formating syntax, with the exception that the leading "%" is dropped.
Converts a string into titlecase
Truncates a string after a certain number of words


