6👍
Check out the markup add-on which comes with Django. That is what you are looking for.
To activate these filters, add ‘django.contrib.markup’ to your INSTALLED_APPS setting. Once you’ve done that, use {% load markup %} in a template, and you’ll have access to these filters. For more documentation, read the source code in django/contrib/markup/templatetags/markup.py.
Also check out this article for some more details if you’re still stuck.
Source:stackexchange.com