You can use mark_safeto prevent the tag <br />from escaping.
This is equivalent to using safein a template, so be careful if you are handling user input. If it is a hard-coded string, then it is safe to use.
from django import forms
from django.utils.safestring import mark_safe
class MyForm(forms.Form):
my_field = forms.CharField(label=mark_safe('my label<br />next line'))
source
share