I think he means
and I always find this handy for stripping out magic quotes
PHP Code:
if (get_magic_quotes_gpc()) {
$body= stripslashes($_POST['body']);
} else {
$body = $_POST['body'];
}
and this to get rid of nasti-ness
PHP Code:
$quotes = array('/"/',"/'/");
$replacements = array('"','& # 39;');
$body = preg_replace($quotes,$replacements,$body);
Sorry and to answer the question
in the database ignore the /r/n but whe you want to echo use this
PHP Code:
echo nl2br($body);