How to prevent cross-site scripting using javascript
<p>I want to stop cross-site scripting on a text area. The code below as input data will be vulnerable for the text area:</p>

<pre><code>&lt;script&gt;alert("Hello")&lt;/script&gt;
</code></pre>

<p>Can anybody help on this to prevent the cross-site scripting with a sample code??</p>