Ticket #5730: radioselect_escape_label.patch
File radioselect_escape_label.patch, 520 bytes (added by , 17 years ago) |
---|
-
django/newforms/widgets.py
246 246 self.index = index 247 247 248 248 def __unicode__(self): 249 return u'<label>%s %s</label>' % (self.tag(), self.choice_label)249 return u'<label>%s%s</label>' % (self.tag(), escape(force_unicode(self.choice_label))) 250 250 251 251 def is_checked(self): 252 252 return self.value == self.choice_value