#2657: [patch] Add carriage return quote in django.utils.text.javascript_quote
----------------------------+-----------------------------------------------
 Reporter:  Alex Dedul      |        Owner:  adrian
     Type:  defect          |       Status:  new   
 Priority:  normal          |    Milestone:        
Component:  Core framework  |      Version:        
 Severity:  normal          |   Resolution:        
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by Alex Dedul):

 About double quotes - there could be 2 cases when javascript is embedded
 in tag's attribute like <a onclick="js_func(...)"> double quotes should be
 quoted and when it appears in <script></script> or in separate file there
 is no need to quote. Django now uses the latter in i18n so double quotes
 can be ignored, but javascript_quote can be made to work for both cases
 what will allow apps with case N1 utilize it and maybe django itself in
 the future. Proposed final patch is in attach.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2657>
Django <http://code.djangoproject.org/>
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to