title: Java Regex, less than and more than sign
body: <p>I have a string that users are able to enter on the internet, currently it is not protected against XSS attacks. I would like to be able to replace &lt; and > symbols. Commonly known as 'less than', 'more than', 'angle brackets' etc.</p>
  
  <p>I am sure this has been asked a million times but I can't find a simple answer. I assume regex is the way forward but can't work out how to pick these characters.</p>