String with CR from .get functions
<p>I have a mobile app coming along nicely.
It uses <code>jQuery.get</code> to get the data from the server and formats that data into the page using 
<code>jQuery.before</code>. Works a treat.</p>

<p>However when the data from the <code>.get</code> has Carriage Return (CR) the javascript processing falls apart.</p>

<p>How can I get round this.<br>
All I can think of is before sending from the server go through the data and change it to escape the CR and LFs so as the Javascript with not fail.</p>

<p>Open to thoughts.</p>

<p>The server app is in PYTHON and creates the reply to .get using DJANGO sends a file of javascript containg the data emeded at literals.  </p>
