My post content displays rn in bteween lines?
Whenever there is a space in between the post it soows rn
. This is how I read the insert data:
$content_of_post_original = mysql_real_escape_st开发者_开发技巧ring($_POST['post_content']);
$content_of_post = stripslashes($content_of_post_original);
And then printed:
echo $show['post_content']
\r\n
means a new line. Your strip slashes is removing this and just echoing rn
instead of a new line.
Check out: http://php.net/manual/en/function.nl2br.php
精彩评论