The text of story content in my database is:
I want to add
new line
(no quote)
When I use:
echo nl2br($story->getStoryContent());
to replace the
with br
, it doesn't work. The browser still display
. When I view source, the
is still there and br
is nowhere to be found also. This is weird because when I test the function nl2br
with simple code like:
echo nl2br("Welcome
This is my HTML document");
it does work. Would you please tell me why it didn't work? Thank you so much.