I have text field in db which stores text from textarea of form with hard returns. I want to pass that field in my javascript with the hard return because javascript gives me error when it encounters hard returns in text.
I tried replacing "\n","\r\n" with "" in php, but it does not remove hard returns.
Any ideas?