How to encode txt.value
<p>I am passing a string to a javascript through call by reference. The string is a text retrieved from a textarea field. The problem is that a single word is retrieved properly, but when i send multiple text it shows a problem. the sample code is like this in an html file:</p>

<pre><code>&lt;input type=button onclick="send(txt.value,123,456)"&gt;
</code></pre>

<p>How to encode txt.value in this case</p>
