I want to change &
to and
in the my page\'s meta description.
This is what I tried
{% if \'&\' in dj.name %}
The documentation says thus:
Because Django intentionally limits the amount of logic processing available in the template language, it is not possible to pass arguments to method calls accessed from within templates. Data should be calculated in views, then passed to templates for display.
You will have to edit dj.name
beforehand.
Edit: looks like Pythoner knows a better way: registering a custom filter. Upvote him ;)