title: Javascript how to convert \r \n line breaks in textarea?
body: <p>Javascript how to convert \r \n line breaks in frist textarea and  show him in the second textarea?</p>
  
  <p>I've tried to use it directly within the variable \r \n is valid, but it reads the textarea\r \n is invalid and he is treated as plain text.</p>
  
  <p>The final effect is shown in this figure:</p>
  
  <p><a href="https://i.stack.imgur.com/1UP6P.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1UP6P.jpg" alt="enter image description here"></a></p>
  
  <p>Please help</p>