Changes between Initial Version and Version 2 of Ticket #8566


Ignore:
Timestamp:
Aug 26, 2008, 4:14:00 PM (16 years ago)
Author:
Jacob
Comment:

(fixed formatting)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8566 – Description

    initial v2  
    2121django.forms.util.flatatt function.  That is:
    2222
     23{{{
    2324from django import forms
    2425from django.utils.safestring import mark_safe
     
    3738name="field_name" safe_string="will o' the wisp" />'
    3839
     40}}}
     41
    3942You can see that both the unsafe and safe strings were escaped.  I
    4043don't know if this is intentional or not, but it prevents me from
    4144making something like:
    4245
     46{{{
    4347<input type="text" onBlur="myFunction('string_arg')">
     48}}}
    4449
    4550because it is always escaping my single-quotes.  Is this the desired
    4651behavior?  Anyway, like I said, the culprit is:
     52
     53{{{
    4754
    4855# django.forms.util
     
    6572be conditional_escape?
    6673
     74}}}
     75
    6776Since there are a lot of calls to mark_safe scattered through the
    6877widget and form-level calls used in rendering, I assume you're meant
Back to Top