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 at http://groups.google.com/group/symfony-users?hl=en.
