diff --git a/anytask/index/templatetags/index_messages.py b/anytask/index/templatetags/index_messages.py index f30c3eaee..0be509b0a 100644 --- a/anytask/index/templatetags/index_messages.py +++ b/anytask/index/templatetags/index_messages.py @@ -1,14 +1,15 @@ from django import template from django.conf import settings +from django.utils.html import mark_safe register = template.Library() @register.simple_tag def index_message(): - return getattr(settings, 'INDEX_MESSAGE', '') + return mark_safe(getattr(settings, 'INDEX_MESSAGE', '')) @register.simple_tag def all_pages_message(): - return getattr(settings, 'ALL_PAGES_MESSAGE', '') + return mark_safe(getattr(settings, 'ALL_PAGES_MESSAGE', ''))