Ion-textarea post to mysql how to newlines?


#1

example,i whrite:
hello
world
2017

but post to mysql like this:
helloworld2017

can you help me?


#2

hi thinksaas,

I use ion-textarea in two differents way :

  • I insert text by the script, for that I use “\n” for back to another line.
  • The user can directly write in the textarea and use “enter” touch to create a new line. (“enter” add automaticly “/n”)

All it’s Ok when I send to my php page before to insert in mysql.