Custom template filter remove words at end of a string
Filter to remove words at the end of a string Example: Myvar: "My name is Arthur and django si awesome" {{myvar|wordend:4}} Output: "My name is Arthur"
- string
- template filter
- remove words at end