devi risolvere in PHP...

str_replace("\n","",$stringa);