Re : Re: [symfony-users] [sf2] Html Escaping

2011-06-14 Thread Thomas
I've fixed my problem,

In the Twig documentation (http://www.twig-project.org/doc/templates.html) i've 
found this :

{% autoescape false %}  Everything will be outputed as is in this block{% 
endautoescape %}


So like Chirstophe said, the output escaping is enabled by default. Adding 
{% autoescape false %} solve the problem thanks !

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re : Re: [symfony-users] [sf2] Html Escaping

2011-06-13 Thread Thomas
Hello Christophe,

In my showNews.html.twig i have :

{% block content %}
h2{{ news.titre }}/h2
div id=date_news
iPublished on {{ news.dateCreation.format('d F Y') }}./i
/div
{{ news.contenu }}
{% endblock %}

and in my head i've the meta : meta http-equiv=Content-Type 
content=text/html; charset=utf-8 /

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en