thx :) On 6 Gru, 18:54, Gábor Fási <[email protected]> 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 <[email protected]> wrote: > > I have in $firm->getDescription(): > > <b>test</b> > > > When I write: > > <?php use_helper('Text') ?> > > <?php echo simple_format_text("<b>test</b>"); ?> > > I see bold text: "test" > > > When I write: > > <?php use_helper('Text') ?> > > <?php echo simple_format_text($firm->getDescription()); ?> > > I see no bold text: "<b>test</b>" > > > Why ?? > > > On 6 Gru, 14:44, lking <[email protected]> wrote: > >> function simple_format_text() defined in text helper. > >> it is replace linebreaks with html tag <br /> and surrounds paragraphs > >> with html tags <p> > >> 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 have html text in this field and that's why > >> simple_format_text() do northing in this case. > > >> On 6 дек, 14:44, dziobacz <[email protected]> wrote: > > >> > In tutorial we have > >> > simple_format_text():http://www.symfony-project.org/jobeet/1_4/Doctrine/en/04 > > >> > I have in action: > >> > $this->firm = Doctrine::getTable('Firm')->find(1); > > >> > And in view: > >> > <?php echo simple_format_text($firm->getDescription()); ?> > > >> > And it shows me: <b>test \n test</b> > >> > But it should be bold text with new line inside. So function > >> > simple_format_text() doesn't work ? > >> > I can use only $sf_data->getRaw() to get HTML ? > > > -- > > > 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 > > athttp://groups.google.com/group/symfony-users?hl=en.
-- 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.
