title: Convert tags to html entities
body: <p>Is it possible to convert html tags to html entities using javascript/jquery using any way possible such as regex or some other way. If yes, then how?</p>
  
  <p><strong>Example:</strong></p>
  
  <p><code>&lt;div&gt;</code> should be converted to <code>&amp;lt;div&amp;gt;</code></p>
  
  <p><strong>Note:</strong> I am not talking about server-side languages.</p>