[symfony-users] Re: sfOutputEscaper behaviour

2010-04-09 Thread symfonyfan
try this.

sfOutputEscaper::unescape(value_to_unescape)

regards,



On Apr 8, 3:05 pm, Apul Gupta  wrote:
> It doesn't work.
>
>  Fatal error: Call to a member function getRawValue() on a non-object
>
> Any other?
>
> On Apr 7, 5:59 pm, Massimiliano Arione  wrote:
>
> > try
>
> > $variable->getRawValue()
>
> > cheers
> > Massimiliano
>
> > On 7 Apr, 06:07, Apul Gupta  wrote:
>
> > > No rekarnar,
>
> > > still it doesn't Work. Any other suggestion?
>
> > > I am getting this in browsers:
>
> > > ==
> > > http://www.abcd.com";>Welcome Text  > > strong>
>
> > > ==
>
> > > and in HTML:
>
> > > ==
> > >  Welcome 
> > > Text
> > > ==
>
> > > I can fix the problem using settings.yml file in module/application
> > > but, I just want to know that why $sf_data->getRaw() not working
> > > expectedly.
>
> > > Please help to fix the issue.
>
> > > On Apr 7, 7:03 am, rekarnar  wrote:
>
> > > > Try $sf_data->get('variable_name',ESC_RAW);
>
> > > > On Apr 6, 7:18 pm, Apul Gupta  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  wrote:
>
> > > > > > Did you try to set escaping-strategy = off in the settings.yml of 
> > > > > > single module?
>
> > > > > > Denis
>
> > > > > > 2010/4/5 Apul Gupta :
>
> > > > > > > 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


Re: [symfony-users] Re: sfOutputEscaper behaviour

try this

sfOutputEscaper::unescape(valute_to_unescape)

regards,

On Thu, Apr 8, 2010 at 3:35 PM, Apul Gupta  wrote:

> It doesn't work.
>
>  Fatal error: Call to a member function getRawValue() on a non-object
>
> Any other?
>
> On Apr 7, 5:59 pm, Massimiliano Arione  wrote:
> > try
> >
> > $variable->getRawValue()
> >
> > cheers
> > Massimiliano
> >
> > On 7 Apr, 06:07, Apul Gupta  wrote:
> >
> >
> >
> > > No rekarnar,
> >
> > > still it doesn't Work. Any other suggestion?
> >
> > > I am getting this in browsers:
> >
> > > ==
> > > http://www.abcd.com";>Welcome Text
>  > > strong>
> >
> > > ==
> >
> > > and in HTML:
> >
> > > ==
> > >  Welcome
> Text
> > > ==
> >
> > > I can fix the problem using settings.yml file in module/application
> > > but, I just want to know that why $sf_data->getRaw() not working
> > > expectedly.
> >
> > > Please help to fix the issue.
> >
> > > On Apr 7, 7:03 am, rekarnar  wrote:
> >
> > > > Try $sf_data->get('variable_name',ESC_RAW);
> >
> > > > On Apr 6, 7:18 pm, Apul Gupta  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  wrote:
> >
> > > > > > Did you try to set escaping-strategy = off in the settings.yml of
> single module?
> >
> > > > > > Denis
> >
> > > > > > 2010/4/5 Apul Gupta :
> >
> > > > > > > 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
>

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


[symfony-users] Re: sfOutputEscaper behaviour

It doesn't work.

 Fatal error: Call to a member function getRawValue() on a non-object

Any other?

On Apr 7, 5:59 pm, Massimiliano Arione  wrote:
> try
>
> $variable->getRawValue()
>
> cheers
> Massimiliano
>
> On 7 Apr, 06:07, Apul Gupta  wrote:
>
>
>
> > No rekarnar,
>
> > still it doesn't Work. Any other suggestion?
>
> > I am getting this in browsers:
>
> > ==
> > http://www.abcd.com";>Welcome Text  > strong>
>
> > ==
>
> > and in HTML:
>
> > ==
> >  Welcome 
> > Text
> > ==
>
> > I can fix the problem using settings.yml file in module/application
> > but, I just want to know that why $sf_data->getRaw() not working
> > expectedly.
>
> > Please help to fix the issue.
>
> > On Apr 7, 7:03 am, rekarnar  wrote:
>
> > > Try $sf_data->get('variable_name',ESC_RAW);
>
> > > On Apr 6, 7:18 pm, Apul Gupta  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  wrote:
>
> > > > > Did you try to set escaping-strategy = off in the settings.yml of 
> > > > > single module?
>
> > > > > Denis
>
> > > > > 2010/4/5 Apul Gupta :
>
> > > > > > 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


[symfony-users] Re: sfOutputEscaper behaviour

try

$variable->getRawValue()

cheers
Massimiliano

On 7 Apr, 06:07, Apul Gupta  wrote:
> No rekarnar,
>
> still it doesn't Work. Any other suggestion?
>
> I am getting this in browsers:
>
> ==
> http://www.abcd.com";>Welcome Text  strong>
>
> ==
>
> and in HTML:
>
> ==
>  Welcome 
> Text
> ==
>
> I can fix the problem using settings.yml file in module/application
> but, I just want to know that why $sf_data->getRaw() not working
> expectedly.
>
> Please help to fix the issue.
>
> On Apr 7, 7:03 am, rekarnar  wrote:
>
> > Try $sf_data->get('variable_name',ESC_RAW);
>
> > On Apr 6, 7:18 pm, Apul Gupta  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  wrote:
>
> > > > Did you try to set escaping-strategy = off in the settings.yml of 
> > > > single module?
>
> > > > Denis
>
> > > > 2010/4/5 Apul Gupta :
>
> > > > > 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


[symfony-users] Re: sfOutputEscaper behaviour

No rekarnar,

still it doesn't Work. Any other suggestion?

I am getting this in browsers:

==
http://www.abcd.com";>Welcome Text 

==

and in HTML:

==
 Welcome Text
==

I can fix the problem using settings.yml file in module/application
but, I just want to know that why $sf_data->getRaw() not working
expectedly.

Please help to fix the issue.


On Apr 7, 7:03 am, rekarnar  wrote:
> Try $sf_data->get('variable_name',ESC_RAW);
>
> On Apr 6, 7:18 pm, Apul Gupta  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  wrote:
>
> > > Did you try to set escaping-strategy = off in the settings.yml of single 
> > > module?
>
> > > Denis
>
> > > 2010/4/5 Apul Gupta :
>
> > > > 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


[symfony-users] Re: sfOutputEscaper behaviour

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

On Apr 6, 7:18 pm, Apul Gupta  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  wrote:
>
> > Did you try to set escaping-strategy = off in the settings.yml of single 
> > module?
>
> > Denis
>
> > 2010/4/5 Apul Gupta :
>
> > > 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


[symfony-users] Re: sfOutputEscaper behaviour

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  wrote:
> Did you try to set escaping-strategy = off in the settings.yml of single 
> module?
>
> Denis
>
> 2010/4/5 Apul Gupta :
>
>
>
> > 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


[symfony-users] Re: sfOutputEscaper behaviour

If you have an object with your data, you can use getContent(ESC_RAW); ?>


On 6 dub, 07:19, Denis Golovin  wrote:
> Did you try to set escaping-strategy = off in the settings.yml of single 
> module?
>
> Denis
>
> 2010/4/5 Apul Gupta :
>
>
>
> > 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