diff --git a/mayan/apps/smart_settings/widgets.py b/mayan/apps/smart_settings/widgets.py index 824ddb4d26..36b5f00288 100644 --- a/mayan/apps/smart_settings/widgets.py +++ b/mayan/apps/smart_settings/widgets.py @@ -1,12 +1,10 @@ from __future__ import unicode_literals -from django.utils.safestring import mark_safe +from django.utils.html import format_html def setting_widget(instance): - return mark_safe( - ''' - {} -
{}
- '''.format(instance, instance.help_text or '') + return format_html( + '{}{}
', instance, + instance.help_text or '' )