diff --git a/django/newforms/forms.py b/django/newforms/forms.py
index 1750a09489..b8911dd013 100644
--- a/django/newforms/forms.py
+++ b/django/newforms/forms.py
@@ -82,7 +82,7 @@ class Form(object):
bf = BoundField(self, field, name)
if bf.errors:
output.append(u'
%s |
' % bf.errors)
- output.append(u'%s | %s |
' % (bf.label_tag(bf.verbose_name+':'), bf))
+ output.append(u'%s | %s |
' % (bf.label_tag(escape(bf.verbose_name+':')), bf))
return u'\n'.join(output)
def as_ul(self):
@@ -96,7 +96,7 @@ class Form(object):
line = u''
if bf.errors:
line += str(bf.errors)
- line += u'%s %s' % (bf.label_tag(bf.verbose_name+':'), bf)
+ line += u'%s %s' % (bf.label_tag(escape(bf.verbose_name+':')), bf)
output.append(line)
return u'\n'.join(output)