Remove comma at start of string
<p>Campaign Monitor has a script that outputs your campaign archive.
This is the output:</p>

<pre><code>&lt;article class="node history"&gt;
  &lt;ul&gt;
    &lt;li&gt;&lt;a href="http://xxx.createsend.com/t/ViewEmailArchive/x/1448CC2F5A9BABD9/C67FD2F38AC4859C/" class="ext"&gt;Title&lt;/a&gt;, 04 July 2012&lt;/li&gt;
  &lt;/ul&gt;
&lt;/article&gt;
</code></pre>

<p>Because I want to separate the date from the title (by giving the a-element a certain width); how can I get rid of the comma and space that's in front of the date - using jQuery?</p>

<p>When I try this next bit of code, my a-element within the li-element disappears (so no more link, everything is just plain text).</p>

<p>UPDATE: okay, so this works for the comma. How to remove the space as well?</p>

<pre><code>$(".node.history ul li").each(function() {
      $(this).html($(this).html().replace(/[,]/, ""));
});​
</code></pre>
