On Tue, May 3, 2011 at 3:49 PM, Michael Radziej <[email protected]> wrote:
> On Tue, 3 May 2011 07:18:24 -0700 (PDT), MikeKJ <[email protected]> 
> wrote:
>>
>> I tried that too after the original post and that made no difference
>> spcontent is escaped HTML and I thought that by marking it safe it
>> wouldnt be escaped again in the pretty.html template
>
> That's correct. But is spcontent escaped once or already twice at that
> point?
>
> Kind regards
>
> Michael
>

I don't know; it's your data. Did you put it in the database escaped
or unescaped? If escaped, you will have to unescape it and mark it
safe, which will avoid it being escaped when output. If unescaped, you
only have to mark it safe.

You should probably be storing it unescaped, given that your other
code path (which renders a template from a string) generates unescaped
HTML.

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en.

Reply via email to