Javascript textarea flatten string
<pre><code>var newString = someString.replace(/\n/, '#');
</code></pre>

<p>Works great, when i do an alert;</p>

<pre><code>alert(newString);
</code></pre>

<p>It appears as this:</p>

<pre><code>"Firstline
#Secondline
#ThirdLine"
</code></pre>

<p>I wish for it to display:</p>

<pre><code>"Firstline#SecondLine#Thirdline"
</code></pre>

<p>This is screwing up my other coding!</p>

<p>Can anyone help?</p>
