Hello Andy,

Thanks for the solution. Neat trick that is. :)

Thanks and Regards
Vikram

On Feb 19, 6:37 pm, "Andy Dziahel'" <[email protected]> wrote:
> Hi.
>
> Well, if you'll var_dump $list variable, you'll see that it's not an
> instance of List (or whatever) - it's instance of
> sfOutputEscaperObjectDecorator. So because of that, your
> $list->getBody()won't return
> '<br/>' - it'll return '*&gt;*br/*&lt;*'. To get unescaped value, you should
> call $list->getBody(ESC_RAW).
>
>
>
> On Thu, Feb 19, 2009 at 11:24, SeeVik <[email protected]> wrote:
>
> > Hello all,
>
> > I walked into a strange problem. In my database I have stored data
> > which contains new-line feeds and I am unable to display them in view.
>
> > I did something like this in my view...
> > <pre><?php echo preg_replace( '/\n/', '<br>', $list->getBody() ) ?></
> > pre>
>
> > What this did was to just display <br> as it is... I tried putting the
> > function inside some helper or a static class as well. That didn't
> > work either.
>
> > However when I do like
> > <pre><?php echo 'abc<br123' ?></pre>
>
> > It displays the strings on separate lines.
>
> > How do we workaround this?
>
> > Thanks and Regards
> > Vikram
>
> --
> With the best regards, Andy.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to