Substring html tag using Javascript
<p>I want to sub string and remove the <code>,</code> which appears within the span tag and display the name alone. Below are the two cases which needs to work.</p>

<pre><code>Case1: &lt;span class="datatableheader"&gt;No results found, &lt;/span&gt;
Case2: &lt;span class="datatableheader"&gt;Jude Gomes, &lt;/span&gt;
</code></pre>

<p>A single function should help in removing the <code>,</code> in both cases and display the result as </p>

<pre><code>&lt;span class="datatableheader"&gt;No results found &lt;/span&gt;
&lt;span class="datatableheader"&gt;Jude Gomes &lt;/span&gt;
</code></pre>

<p>Appreciate for any help.</p>

<p>Thanks</p>
