title: How to replace a html tag in js?
body: <p>I have a string in which there are continous occurances of a font tag</p>
  
  <pre><code> &lt;font color="blue"&gt;DATA ENTRY&lt;/font&gt; 
  </code></pre>
  
  <p>and in some cases like this</p>
  
  <pre><code> &lt;font class="beat"&gt;DATA ENTRY&lt;/font&gt; 
  </code></pre>
  
  <p>I want to replace the 2 tags with </p>
  
  <p>So that it looks like this</p>
  
  <pre><code>     &lt;p&gt;DATA ENTRY&lt;/p&gt;
  </code></pre>
  
  <p>I tried this ,can anyone please suggest me help.Thanks.</p>
  
  <pre><code> text = text.replace('&lt;font [^"]*&gt;',&lt;p&gt;).replace('&lt;/font&gt;','');
  </code></pre>