title: Regular expression in javascript for restricting HTML entites like &lt;
body: <p>Hii,</p>
  
  <p>I want to restrict the html entities like <code>'&amp;lt;' , "&amp;gt;" , "&amp;amp;"</code>etc but it should accept '&lt;' and '>' when i click on a button
  from the javascript. Can anybody gives me the regular expression for that</p>