Home > Article > Web Front-end > Textarea line break problem_html/css_WEB-ITnose
I added wrap="physical" to the textarea attribute, but automatic line breaks are displayed when typing, but once sent to the server, there are no line breaks. Using js to get the value of textarea also has no line breaks.
I added wrap="physical" to the textarea attribute, but it shows automatic line wrapping when typing, but once it is sent to the server No more newlines. Using js to get the value of textarea also has no line breaks.
What it says about automatic line wrapping of text in textarea is not what you understand. Add
to the text in your textarea.
You can convert it when storing/reading. n is