[symfony-users] Re: function simple_format_text() from Symfony 1.4 doesn't work ?

2009-12-06 Thread dziobacz
thx :) On 6 Gru, 18:54, Gábor Fási wrote: > Because you assign the $firm data in the controller, and it gets > escaped before it gets into the view. > If you want the raw value, you'll need $firm->getDescription(ESC_RAW); > > On Sun, Dec 6, 2009 at 16:06, dziobacz wrote: > > I have in $firm->get

Re: [symfony-users] Re: function simple_format_text() from Symfony 1.4 doesn't work ?

2009-12-06 Thread Gábor Fási
Because you assign the $firm data in the controller, and it gets escaped before it gets into the view. If you want the raw value, you'll need $firm->getDescription(ESC_RAW); On Sun, Dec 6, 2009 at 16:06, dziobacz wrote: > I have in $firm->getDescription(): > test > > When I write: > > test"); ?>

[symfony-users] Re: function simple_format_text() from Symfony 1.4 doesn't work ?

2009-12-06 Thread dziobacz
I have in $firm->getDescription(): test When I write: test"); ?> I see bold text: "test" When I write: getDescription()); ?> I see no bold text: "test" Why ?? On 6 Gru, 14:44, lking wrote: > function simple_format_text() defined in text helper. > it is replace linebreaks with html tag and

[symfony-users] Re: function simple_format_text() from Symfony 1.4 doesn't work ?

2009-12-06 Thread lking
function simple_format_text() defined in text helper. it is replace linebreaks with html tag and surrounds paragraphs with html tags that's it. i'm not sure that you really need to use $sf_data->getRaw(). also here is sense to check what you have in the firm.description field. looks like you hav