Line break does not work in textarea in ipad (safari), tried differently.

1. \r\n 2. \n 3. PHP_EOL 

Help, please, I can not find.

    2 answers 2

    https://jsfiddle.net/hafzd5g5/1/

     textarea { width: 100%; resize: vertical; height: 8em; box-sizing: border-box; } 
     <textarea>Вообще-то всё работает. И было бы странно, если бы это было не так.</textarea> 

      Try a simple line break in the code itself:

       <textarea placeholder="string1 string2"/> 

      Not at all laconic, but it should work

      • Here I do not understand where the placeholder came from? There is nothing about him in the question ... - Qwertiy
      • @Qwertiy I apologize, for some reason the thought crept into my head that it was about a placeholder. But your example should work too. The only thing somewhere I saw that Safari has a problem with the transfer to the textarea. If I find it, I'll take a link to this case. - Ivan Galin
      • My work - I checked. Yours probably too. - Qwertiy