Encode a String in JavaScript
<p>I need HTML ENCODE in JavaScript (client side) a String (where User could insert HTML TAGS) from a TextBox so bypassing Reqeust.Validation.</p>

<p>Javascript should Encode string and Display it Encoded in Label.</p>

<pre><code>       &lt;asp:TextBox ID="uxValueInput" runat="server"&gt;&lt;/asp:TextBox&gt;
       &lt;br /&gt;
       &lt;asp:Label ID="uxResultEncoded" runat="server" Text="Label"&gt;&lt;/asp:Label&gt;
       &lt;asp:Button ID="uxEncodeButton" runat="server" Text="Button" /&gt;
</code></pre>

<p>I am new in JavaScript and I have tried different scripts on a web but with no success.
Could you please post a really simple example so I would be able to understand how could work. Thanks!</p>
