title: How to escape HTML special characters in Java?
body: <p>Is there a way to convert a string to a string that will display properly in a web document?  For example, changing the string</p>
  
  <pre><code>"&lt;Hello&gt;"
  </code></pre>
  
  <p>To</p>
  
  <pre><code>"&amp;lt;Hello&amp;gt;"
  </code></pre>