thanks, that works for me !

$record_instance->getRawValue()->getFieldName()


On 26 mai, 10:50, Benoit Montuelle <[email protected]> wrote:
> Hello,
>
> What i've done to keep escaping globally enabled but allow html rendering in
> one specific part if using getRawValue() method from sfOutputEscaper class,
> in the template /partial juste like this :
>      echo $message->getRawValue()->getText()
>
> I don't how it manages to keep doctrine (in my example $message is
> Doctrine_Record instance) object methods functional, but it worked. If
> needed source of version used is 
> herehttp://trac.symfony-project.org/browser/branches/1.4/lib/escaper/sfOu...
>
> Regards,
> Benoit
>
> 2010/5/26 l3ia-etu <[email protected]>
>
> > Hello everyone,
>
> > I would like to insert some html code in my template.
>
> > in the doc we've got:
> > Listing 7-44 - Activating Output Escaping, in myapp/config/
> > settings.yml
>
> > all:
> >  .settings:
> >    escaping_strategy: both
> >    escaping_method:   ESC_ENTITIES
>
> > so putting
> > escaping_strategy: off
> > would resolve my problem, but i want this, just for one template.
>
> > i've tried
> > creating a file settings.yml in the config dir of the module:
> > <name of the template>:
> >  .settings:
> >    escaping_strategy: off
>
> > like i've done for the security.yml:
> > all:
> >  is_secure: true
>
> > Actualites:
> >  is_secure: false
> > Articles:
> >  is_secure: false
>
> > but that doesn't seem to works.
>
> > if you could help me, i would be gratefully.
> > 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 [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<symfony-users%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to