title: How to use carriage return or line feed in the query string?
body: <p>the customers can enter lines in a text area and this is saved in the database.</p>
  
  <p>If the customer comes back to the site he can load the previously entered data. </p>
  
  <p>However, the line feeds and carriage returns aren't displayed in the text area.</p>
  
  <p>I can place them in the query string for example by ASCII coding them: %A or %D but java doesn't like that and throws an IllegalArgumentException.</p>
  
  <p>So I do now: %5Cn and %5Cr which gives: \n and \r</p>
  
  <p>How can I make javascript to display the escaped new lines as actual new lines in the text area?</p>
  
  <p>The URL is something like:</p>
  
  <p><a href="http://www.abc.com?textarea=line1%5Cn%5Crline2" rel="noreferrer">http://www.abc.com?textarea=line1%5Cn%5Crline2</a></p>
  
  <p>and I want the line1 and line2 to be on two different lines in the textarea.</p>