简体   繁体   中英

html textbox to preserve line breaks

I was wondering if there is a possibility to make a html text input (textbox) to preserve new lines, because when I paste a formatted text into a textbox, the text automatically looses new lines. I guess this is a normal/standard behaviour of this control, but is there any way to prevent this from happening, or the only option is to use TextArea Control.

Thanks

<textarea wrap='hard'>Perserve line breaks</textarea>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM