title: XSS Attacks prevention with Ajax Get & POST requests
body: <p>I have minimal knowledge over preventing XSS vulnerabilities of how it can be done especially with form inputs by not allowing the special characters like &lt;,> etc., But the question that i have is with Ajax : </p>
  
  <ul>
  <li><p>Get Request : How efficiently it can be prevented for the query string params.</p></li>
  <li><p>POST Request : Is the data sent via POST request could still be a cause for XSS attack OR POST requests prevents the XSS attacks.</p></li>
  </ul>
  
  <p>Please do help me in understanding this.  </p>