Try this way:
print nl2br(stripcslashes($shouts[$i]->msg));
Pay attention to the stripcslashes()
function, but not stripslashes()
Or just:
print nl2br($shouts[$i]->msg);
UPD: nl2br()
function replaces \n
with <br />
. The problem is that you don't have \n
in your text, but have n
or \\n
. I think there is no need to use stripslashes()
when you get data from base, except the situation when you have ecranized data in your base.