title: How can I escape special HTML characters in JSP?
body: <p>Before I go and create a custom tag or Java method to do it, what is the standard way to escape HTML characters in JSP?</p>
  
  <p>I have a String object and I want to display it in the HTML so that it appears to the user as is.</p>
  
  <p>For example:</p>
  
  <pre><code>String a = "Hello &lt; World";
  </code></pre>
  
  <p>Would become:</p>
  
  <pre><code>Hello &amp;lt; World
  </code></pre>