Changes between Initial Version and Version 2 of Ticket #8566
- Timestamp:
- Aug 26, 2008, 4:14:00 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #8566 – Description
initial v2 21 21 django.forms.util.flatatt function. That is: 22 22 23 {{{ 23 24 from django import forms 24 25 from django.utils.safestring import mark_safe … … 37 38 name="field_name" safe_string="will o' the wisp" />' 38 39 40 }}} 41 39 42 You can see that both the unsafe and safe strings were escaped. I 40 43 don't know if this is intentional or not, but it prevents me from 41 44 making something like: 42 45 46 {{{ 43 47 <input type="text" onBlur="myFunction('string_arg')"> 48 }}} 44 49 45 50 because it is always escaping my single-quotes. Is this the desired 46 51 behavior? Anyway, like I said, the culprit is: 52 53 {{{ 47 54 48 55 # django.forms.util … … 65 72 be conditional_escape? 66 73 74 }}} 75 67 76 Since there are a lot of calls to mark_safe scattered through the 68 77 widget and form-level calls used in rendering, I assume you're meant