On Wed, Oct 22, 2008 at 07:17:56PM +1100, Malcolm Tredinnick wrote:
> On Sat, 2008-10-18 at 12:48 -0700, Jesse Young wrote:
> > I think it would be nice if you could call
> > mark_safe on the label attribute of a form field so it doesn't get
> > escaped in _html_output. Currently if you want to put html in labels,
> > it seems that you have to copy and paste the entirety of _html_output
> > just to change one line (label = escape(force_unicode(bf.label)))
> 
> That sounds like a bug. Label attributes on form fields are not
> use-generated. They're supplied by the developer (code writere), so they
> should be treated as safe strings. Please open a ticket for this and
> we'll fix it.

There's already a ticket opened:
http://code.djangoproject.com/ticket/9111
Originally this was fixing only the escape of form errors, but someone
yesterday escaped labels too.

-- 
Giuliani Vito, Ivan
http://zeta-puppis.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to