Javascript string literal error
<p>How would I maintain this code so that it doesn't break on a new line. As a result of this string being broken, I am getting a javascript string literal error.</p>

<p>I need to do this on the PHP side.</p>

<p>I've tried str_replace but that doesn't do it. I don't understand why the line is being broken in the first place.</p>

<pre><code>CKEDITOR.instances.article.setData('&lt;p&gt;Test&lt;/p&gt;
');
</code></pre>

<p>PHP:</p>

<pre><code>$text = '&lt;p&gt;Test&lt;/p&gt;';
</code></pre>
