String Filters
-
cut
- removes all instances of
string_to_cut
from the value. - linenumbers - prepends each line of text with a line number.
- phone2numeric - converts letters to numbers for a phone number.
- pluralize - returns a pluralization suffix.
- stringformat - formats a string.
-
truncatechars
- truncates a value to
n
characters and appends an ellipsis (…). -
truncatechars_html
- truncates a value to
n
characters and appends an ellipsis (…). Smart about HTML tags. -
truncatewords
- truncates a value to
n
words and appends an ellipsis (…). -
truncatewords_html
- truncates a value to
n
words and appends an ellipsis (…). Smart about HTML tags. -
wordwrap
- inserts newline after every
n
characters.