Hi
I'm a django beginner.
I got confused, when i write html scripts in my admin testfield like
hello and save them in mysql, but when i wanna display them
in screen, they can not display as bold font as i want, the source
file writes: hello
What can i do to make it right?
--~--~--
Use filter "safe" in your template:
{{ mymodel.page|safe }}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from
oh, thank you very mush:)
On 9月3日, 下午3时01分, krylatij <[EMAIL PROTECTED]> wrote:
> Use filter "safe" in your template:
>
> {{ mymodel.page|safe }}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
> I got confused, when i write html scripts in my admin testfield like
> hello and save them in mysql, but when i wanna display them
> in screen, they can not display as bold font as i want, the source
> file writes: hello
>
> What can i do to make it right?
Django autoescapes. See:
4 matches
Mail list logo