As my client requires to use textarea for entering description from the user side, I have to use it, I have already used nl2br() for replacing \n to <br> as well as I have replaced " " with   using str_replace. But the problem I am facing is of wrapping up the text inside textarea in mozilla.