title: Java 5 HTML escaping To Prevent XSS
body: <p>I'm looking into some XSS prevention in my Java application.</p>
  
  <p>I currently have custom built routines that will escape any HTML stored in the database for safe display in my jsps. However I would rather use a built in/standard method to do this if possible.</p>
  
  <p>I am not currently encoding data that gets sent to the database but would like to start doing that as well.</p>
  
  <p>Are there any built in methods that can help me to achieve this?</p>