i'm using a textarea in a webpage which is loaded through an Ajax request.
The result of the request is a list of numbers separated by \n
Here is the result :
<textarea wrap="hard" rows="10" cols="80">111000333
414141411
</textarea>
In Chrome it works correctly but in IE7 the carriag开发者_开发问答e return doesn't work and all the result is on the same line.
What can i do ? use another way of making carriage return or add properties to the textarea ?
Thanks
could you use javascript regex?  i.e. str.replace(/\r\n/gi, "
")
where str is the innerHTML of the textarea
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论