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


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