Escaping in Html
<p>I need to make my code secure from XSS, so far I have found out that I have to escape my html, </p>

<p>I know I have to escape the following:</p>

<pre><code>&lt;   &amp;lt;
&gt;   &amp;gt;
(   &amp;#40;
)   &amp;#41;
#   &amp;#35;
&amp;   &amp;amp;
"   &amp;quot;
</code></pre>

<p>I change the above characters in my code but the code shows as a string on the browser, I do not know where to escape them and basically how to escape them in order to work correctly, can anyone help on this?</p>