Parameter | Type | Description |
---|---|---|
url | String | |
safe | String |
Optional
|
Adds slashes - useful for passing strings to JavaScript, for example.
Parameter | Type | Description |
---|---|---|
value | undefined |
Capitalizes the first character of the value
Parameter | Type | Description |
---|---|---|
value | undefined |
Centers the value in a field of a given width
Parameter | Type | Description |
---|---|---|
value | undefined | |
arg | undefined |
Removes all values of arg from the given string
Parameter | Type | Description |
---|---|---|
value | undefined | |
arg | undefined |
Replaces ampersands with &
entities
Parameter | Type | Description |
---|---|---|
value | undefined |
Format a number according to arg
If called without an argument, displays a floating point number as 34.2 -- but only if there's a point to be displayed. With a positive numeric argument, it displays that many decimal places always. With a negative numeric argument, it will display that many decimal places -- but only if there's places to be displayed.
Parameter | Type | Description |
---|---|---|
value | undefined | |
arg | undefined |
Displays text with line numbers
Parameter | Type | Description |
---|---|---|
value | undefined |
Parameter | Type | Description |
---|---|---|
value | undefined | |
arg | undefined |
Converts a string into all lowercase
Parameter | Type | Description |
---|---|---|
value | undefined |
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.
Parameter | Type | Description |
---|---|---|
value | undefined |
Parameter | Type | Description |
---|---|---|
value | undefined | |
arg | undefined |
Converts to lowercase, removes non-alpha chars and converts spaces to hyphens
Parameter | Type | Description |
---|---|---|
value | undefined |
Formats the variable according to the argument, a string formatting specifier. This specifier uses Python string formatting syntax, with the exception that the leading "%" is dropped.
Parameter | Type | Description |
---|---|---|
value | undefined | |
arg | undefined |
Converts a string into titlecase
Parameter | Type | Description |
---|---|---|
value | undefined |
Truncates a string after a certain number of words
Parameter | Type | Description |
---|---|---|
value | undefined | |
arg | Integer | Number of words to truncate after |
Parameter | Type | Description |
---|---|---|
value | undefined | |
arg | undefined |
Parameter | Type | Description |
---|---|---|
value | undefined | |
arg | undefined |
Parameter | Type | Description |
---|---|---|
value | undefined |
Parameter | Type | Description |
---|---|---|
value | String | alias name: 'cent', 'pound' .. |
arg | undefined |