Loading an outbuffer to a string in javascript?
<p>How to load the output buffer into a string using javascript ?</p>

<p>for example in php</p>

<pre><code>&lt;?php ob_start(); ?&gt;

hello world !

&lt;?php $string = ob_get_contents(); ?&gt;
</code></pre>
