title: How to configure antisamy in cq 5.5?
body: <p>I have cq 5.5 project.</p>
  
  <p>I want to Prevent XSS attacks.</p>
  
  <p>According this <a href="http://dev.day.com/docs/en/cq/current/deploying/security_checklist.html#Protect%20against%20Cross-Site%20Scripting%20%28XSS%29" rel="nofollow">link</a> cq provides integration with AntiSamy project.</p>
  
  <p>Please provide concrete steps for integration with AntiSamy because I really cannot find it.</p>
  
  <h2>update</h2>
  
  <p>Should I write code like this somewhere?</p>
  
  <pre><code>import org.owasp.validator.html.*;
  
  Policy policy = Policy.getInstance(POLICY_FILE_LOCATION);
  
  AntiSamy as = new AntiSamy();
  CleanResults cr = as.scan(dirtyInput, policy);
  
  MyUserDAO.storeUserProfile(cr.getCleanHTML()); // some custom function
  </code></pre>