Hi Folk
I am getting some data from an html form (textarea). I am having trouble
with replacing line breaks in the data with spaces.
here is my line:
trim(stripslash es(str_replace( "\n", ' ',
(htmlentities($ _POST["facexp"]))))));
I end up with lots of but the linebreaks are still there.
What am I doing wrong?
Thank you
- Nicolaas
I am getting some data from an html form (textarea). I am having trouble
with replacing line breaks in the data with spaces.
here is my line:
trim(stripslash es(str_replace( "\n", ' ',
(htmlentities($ _POST["facexp"]))))));
I end up with lots of but the linebreaks are still there.
What am I doing wrong?
Thank you
- Nicolaas
Comment