diff --git a/tcms/core/widgets.py b/tcms/core/widgets.py index aad24c7629..4852476a67 100644 --- a/tcms/core/widgets.py +++ b/tcms/core/widgets.py @@ -1,4 +1,4 @@ -# Copyright (c) 2018,2021 Kiwi TCMS project. All rights reserved. +# Copyright (c) 2018-2024 Kiwi TCMS project. All rights reserved. # Author: Alexander Todorov """ @@ -6,6 +6,7 @@ """ from django import forms from django.utils.dateparse import parse_duration +from django.utils.safestring import SafeString class SimpleMDE(forms.Textarea): @@ -24,9 +25,11 @@ def render(self, name, value, attrs=None, renderer=None): } ) rendered_string = super().render(name, value, attrs, renderer) - rendered_string += f""" + rendered_string += SafeString( + f""" """ + ) return rendered_string class Media: