Hi !
Just stumbled upon this issue, with django 1.8.6:
from django import forms
from django.template import Template, Context
class A(forms.Form):
f = forms.CharField(help_text=u'bli "blo" >', label="bla <")
Template("{{form.as_p}}").render(Context({"form": A()}))
# returns:
u'<p><label for="id_f">bla <:</label> <input id="id_f" name="f" type="text" /> <span class="helptext">bli "blo" ></span></p>'
The label is escaped, but not the help_text.
- Is that a bug ?
- or should I mark all my help_text as unsafe ?
I did not find anything relevant in the doc or with google.
Regards,
NotSqrt