Thanks. I've been on that page but I just found
{% autoescape off %}
<tr><td class="mini_th">Description:</td><td>{{ script.desc }}</
td></tr>
{% endautoescape %}
Using 'safe' it goes like:
{% autoescape off %}
<tr><td class="mini_th">Description:</td><td>{{ script.desc |
safe }}</td></tr>
{% endautoescape %}
Data goes from the db (by but some stuff) so there is not risk.
Thanks again.
Wishes,
M.
On Apr 15, 2:15 pm, google torp <[email protected]> wrote:
> Hi
> There is a page for all the django template
> tags:http://docs.djangoproject.com/en/dev/ref/templates/builtins/
>
> Your problem is the auto escape, you can use "|safe" to mark something
> safe and it wont be escaped. Doing this for user submitted data is a
> bad idea though, so make sure you don't make your site vulnerable for
> attacks before use.
>
> ~Jakob
>
> On 15 Apr., 12:52, mag_dex <[email protected]> wrote:
>
> > Hey,
>
> > I've gotten a following problem. I have stored some pieces of html
> > code in the database.
> > If the django renders html code it <br> is changed to <br> ;(
> > I guess there is easy one to change behaviour of rendering but I can't
> > find it.
>
> > Any ideas?
>
> > M.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---