Ciao, prova a fare cosi:

Codice PHP:
$prova str_replace("\n""
"
$_POST['tuo_input']);
echo 
$prova
Saluti