title: Replace < and > symbols with &lt; and &gt; symbols in HTML String
body: <p>I want Regular expression for replace &lt; and > symbols by &amp;lt; and &amp;gt; in html text and make as a valid XML.</p>
  
  <p>Example String:</p>
  
  <pre><code>&lt;HTML&gt;&lt;BODY&gt;&lt;p style="margin:0px"&gt;His &lt;span style="color: rgb(237, 23, 23);"&gt;career &lt;/span&gt;spanned the development of cinema, from &lt;span style="font-weight: 700;"&gt;silent film&lt;/span&gt;, through early experiments in &lt;span style="text-transform: uppercase;"&gt;Technicolor &lt;/span&gt;to filmmaking in the 21st century.​&lt;/p&gt;&lt;p&gt;His career spanned the development of cinema, from silent film, through early experiments in Technicolor to filmmaking in the 21st century.&lt;This sample&gt;&lt;/p&gt;​&lt;/BODY&gt;&lt;/HTML&gt;
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>&lt;HTML&gt;&lt;BODY&gt;&lt;p style="margin:0px"&gt;His &lt;span style="color: rgb(237, 23, 23);"&gt;career &lt;/span&gt;spanned the development of cinema, from &lt;span style="font-weight: 700;"&gt;silent film&lt;/span&gt;, through early experiments in &lt;span style="text-transform: uppercase;"&gt;Technicolor &lt;/span&gt;to filmmaking in the 21st century.​&lt;/p&gt;&lt;p&gt;His career spanned the development of cinema, from silent film, through early experiments in Technicolor to filmmaking in the 21st century.&amp;lt;This sample&amp;gt;&lt;/p&gt;​&lt;/BODY&gt;&lt;/HTML&gt;
  </code></pre>
  
  <p>Thanks</p>
  
  <p>Iyyappan S</p>