title: JSP string with "enter" causing problems
body: <p>I have app engine app that uses a java servlet to save a message to the datastore that is posted by a user (using a form).</p>
  
  <pre><code>String content = req.getParameter("message");
  message.setProperty("content", content);
  </code></pre>
  
  <p>When later processing the message in JSP I get a run-time error if the user has hit "enter" when typing the message.</p>
  
  <pre><code>messageArray[&lt;%=i%&gt;]= {
                      content:  "&lt;%=message.getProperty("content")%&gt;",
  </code></pre>
  
  <p>How do I solve this?  I would like to save the "enter" to display the message properly.</p>
  
  <p>Thanks!</p>