title: Replace specific character with escaped version in Java
body: <p>I have a large String with many occurrences like this:</p>
  
  <pre><code>List&lt;String&gt;
  </code></pre>
  
  <p>I need to convert that String so that it matches</p>
  
  <pre><code>List\&lt;String\&gt;
  </code></pre>
  
  <p>I was assuming that I would use the Java replaceAll("", "") method but I can't get it to work as I am not all that familiar with Regular expressions.</p>
  
  <p>Any help would be appreciated</p>