title: i need to replace the <mark> tag in a string with the contents inside that tag java script
body: <p>i need to replace the  tag  inside a string with the contents inside that tag java script.That means i simply want to remove the start and the end tags , And the content should be there as such.</p>
  
  <p>Suppose my input string is </p>
  
  <pre><code>&lt;div class="active"&gt;&lt;mark class="active-search-position"&gt;The Alliance for Child Protection&lt;/mark&gt;&lt;mark class&gt;The Alliance for Child Protection&lt;/mark&gt;&lt;/div&gt;
  </code></pre>
  
  <p>The output String should be</p>
  
  <pre><code>&lt;div class="active"&gt;The Alliance for Child ProtectionThe Alliance for Child Protection&lt;/div&gt;
  </code></pre>
  
  <p>The below is the source code that i have tried out</p>
  
  <pre><code>temp = String(temp).replace(/&lt;mark class="active-search-position"&gt;/gi,"").replace(/&lt;mark class&gt;/,"").replace(/&lt;mark&gt;/gi, "").replace(/&lt;\/mark&gt;/gi, "");
  </code></pre>
  
  <p>But this just partially working.Is there any regular expression by which i can match the  tag , and do the replace with a single line?</p>