I have a variable:
var remoteControlPage = '
<table>
<tr>
<td class="stats">sadfsadf</td>
</tr>
</table>
';
and I want to use it in a Jquery .html
function like this:
$("div.devices div.devicePage").html(remoteControlPage);
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.
So I was wondering if there is anyway to convert the var remoteControlPage
into a single lined variable?
Thanks