String Filters
13 filters
-
cut
removes all instances of
string_to_cutfrom the value. - language_name gives a language's English name. Needs {% load i18n %}
- language_name_local gives a language's name in its own language. Needs {% load i18n %}
- language_name_translated gives a language's name in the active language. Needs {% load i18n %}
- linenumbers prepends each line of text with a line number.
- phone2numeric converts letters to numbers for a phone number.
- pluralize returns a pluralization suffix. Most useful
- 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. Most useful -
wordwrap
inserts newline after every
ncharacters.
