#10449: Bug: HTML accents not escaped out when using newforms -------------------------------------------+-------------------------------- Reporter: tipan | Owner: nobody Status: reopened | Milestone: Component: Internationalization | Version: 1.0 Resolution: | Keywords: accents, newforms Stage: Accepted | Has_patch: 0 Needs_docs: 1 | Needs_tests: 1 Needs_better_patch: 0 | -------------------------------------------+-------------------------------- Comment (by arien):
Malcolm, I'm not fighting you. I disagree with your solution, that is all. If and when anybody wants to have a stab at this, it may be nice to know that changing the translation functions so that they return `SafeData` fixes this particular issue, while passing all but a few tests in Django's suite. The tests that don't pass (in `django/contrib/auth/tests` and `tests/regressiontests/admin_views`) assume that translated strings will be escaped on output. (See `django.contrib.auth.tests.PasswordResetTest.test_email_not_found` for an example, escaping single quotes.) I think I'm done with this particular ticket. *sigh* -- Ticket URL: <http://code.djangoproject.com/ticket/10449#comment:9> Django <http://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 post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---