#25872: Title attribute for related widget links lacks escaping (and breaks 
html)
---------------------------------+------------------------------------
     Reporter:  a1tus            |                    Owner:  nobody
         Type:  Bug              |                   Status:  new
    Component:  contrib.admin    |                  Version:  1.8
     Severity:  Release blocker  |               Resolution:
     Keywords:                   |             Triage Stage:  Accepted
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+------------------------------------

Comment (by a1tus):

 Replying to [comment:3 claudep]:
 > This was discussed already AFAIR. We have currently no way to tell if
 the markup from a translated string should be escaped or not, as it is
 perfectly legal to mark for translation strings having HTML markup. Until
 now, we simply trust translations, as if they were code. I'm open to some
 strategy to change this behavior if anyone has good ideas.
 > Until then, the workaround is to update the translation with escaped
 content.
 I agree that in general there can be some choices but in this particular
 place of code (where translated string is in `title` attribute) there
 should not be any unescaped chars. So I don't see any drawbacks of
 escaping it in this template. In english and all locales that don't have
 quotes everything will remain as it is now while bug will be fixed in
 others.

--
Ticket URL: <https://code.djangoproject.com/ticket/25872#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.fbacc488186b58b66b68ae1beef522a3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to