[symfony-users] Unescaping HTML content

2010-03-11 Thread Romain Pouclet
Hi all, I have a Page model with a content property. This content contains HTML coming from the tinymce WYSIWYG editor, but when I do : ?php // ... echo $page-getContent(); // ? The HTML tags are escaped, which is good but I don't want Symfony to escape this one. Here is what I tried :

Re: [symfony-users] Unescaping HTML content

2010-03-11 Thread Giorgio Mandolini
Hi, try $page-getContent('ESC_RAW'); or setup the default escaping behaviour in settings.yml check this: http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_output_escaping Giorgio Mandolini 2010/3/11 Romain Pouclet pall...@gmail.com Hi all, I have a Page model with

Re: [symfony-users] Unescaping HTML content

2010-03-11 Thread Romain Pouclet
It does not change anything, I really don't get why and more importantly why my $page variable classname is sfOutputEscaperIteratorDecorator? That doesn't make any sense :/ I tried to deactivate the escaping, and I got my HTML properly displayed, the problem is somewhere else... Le 11 mars

Re: [symfony-users] Unescaping HTML content

2010-03-11 Thread Marc Weistroff
It's because objects and variable are escaped before being passed to the view. Are you echoing your content inside a slot (or partial?) that might be automatically or manually escaped after that? On Thu, Mar 11, 2010 at 4:52 PM, Romain Pouclet pall...@gmail.com wrote: It does not change

Re: [symfony-users] Unescaping HTML content

2010-03-11 Thread Romain Pouclet
I finally figured it out, this is what I found when I looked at my colleague layout.php : http://up.r12t.fr/94fc46c2.png He was passing $sf_content to a partial, so escaping then unescaping in my template, and finally re-escaping in the partial T_T Thanks for your time anyway :) Le 11 mars