Ion-textarea post to mysql how to newlines?


example,i whrite:

but post to mysql like this:

can you help me?


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.