Try $sf_data->get('variable_name',ESC_RAW);

On Apr 6, 7:18 pm, Apul Gupta <apulmca...@gmail.com> wrote:
> I haven't use that but I know that it will work. But, Can't we get un-
> escaped data without doing any YML changes as It is mentioned in
> Documentation that, We will get raw data by using $sf_data-
>
> >getRaw('sf_content');
>
> Why this is not working expectedly? I am using Symfony 1.4.2 version.
>
> Any idea?
>
> ---
> Thanks
> Apul Gupta
>
> On Apr 6, 10:19 am, Denis Golovin <golovin.de...@gmail.com> wrote:
>
> > Did you try to set escaping-strategy = off in the settings.yml of single 
> > module?
>
> > Denis
>
> > 2010/4/5 Apul Gupta <apulmca...@gmail.com>:
>
> > > Hi,
>
> > > Actually, I want to show some HTML text from the database to a
> > > template.
>
> > > I am using
> > > echo $sf_data->getRaw('sf_content');
>
> > > to get un-escaped value from the database but still it shows escaped
> > > data to me. What should I do to get unescaped value?
>
> > > I don't want to SET escaping-strategy = off in settings.yml for the
> > > entire application.
>
> > > I will appreciate any help.
>
> > > ---
> > > Thanks
> > > Apul Gupta
>
> > > --
> > > 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
>
> > > To unsubscribe, reply using "remove me" as the subject.
>
>

-- 
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

Reply via email to