Convert multi-lined variable into a single lined variable using Javascript?
<p>I have a variable:</p>

<pre><code>    var remoteControlPage = '
        &lt;table&gt;
            &lt;tr&gt;
                &lt;td class="stats"&gt;sadfsadf&lt;/td&gt;
            &lt;/tr&gt;
        &lt;/table&gt;
    ';
</code></pre>

<p>and I want to use it in a Jquery <code>.html</code> function like this:</p>

<pre><code>    $("div.devices div.devicePage").html(remoteControlPage);
</code></pre>

<p>The problem is the html function wont work unless the new content is in a sing line. And this is not desirable when writing html.</p>

<p>So I was wondering if there is anyway to convert the <code>var remoteControlPage</code> into a single lined variable?</p>

<p>Thanks</p>
