When I try to put text that has multiple empty lines inside a textarea in HTML, the browser ignores them and does not display them. My purpose is to allow the user to edit his text while preserving all the new lines.
If I put this:
text a\n\n\ntext b\ntextc
The browser displays:
text a
text b
text c
My purpose:
text a
text b
text c
Aucun commentaire:
Enregistrer un commentaire