String Filters
-
cut
- removes all instances of
string_to_cutfrom 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
ncharacters and appends an ellipsis (…). -
truncatechars_html
- truncates a value to
ncharacters and appends an ellipsis (…). Smart about HTML tags. -
truncatewords
- truncates a value to
nwords and appends an ellipsis (…). -
truncatewords_html
- truncates a value to
nwords and appends an ellipsis (…). Smart about HTML tags. -
wordwrap
- inserts newline after every
ncharacters.
