title: Remove <span> and </span> in Text using RegEx
body: <p>I am trying to get the text available inside the <code>&lt;a&gt;</code> elements. I have used the innerHTML to retrieve that inner text, but in few <code>&lt;a&gt;</code> elements the inner Text is placed inside the <code>&lt;span&gt;</code> elements.</p>
  
  <p>While retrieving the text value am getting it as <code>&lt;span&gt;sample text&lt;/span&gt;</code> as the output string. Can anyone help me to remove the <code>&lt;span&gt;&lt;/span&gt;</code> in the output string using RegEx so that i can only have <code>sample text</code> in my output string.</p>
  
  <pre><code>&lt;a href="#"&gt;&lt;span&gt;Sample Text&lt;/span&gt;&lt;/a&gt;
  </code></pre>
  
  <p>Note: I am not using any Javascript Libraries in the page.</p>