Select first 2 words with jQuery and wrap them with <span> tag
<p>How can I select with jQuery the first two words in a sentence, wrap them with a span tag and add a br tag after it?</p>

<p>Something like this:</p>

<pre><code>&lt;p&gt;&lt;span&gt;Lorem ipsum&lt;/span&gt;&lt;br/&gt; quosque tandem&lt;/p&gt;
</code></pre>

<p>But add the span and br tag dynamically.</p>

<p>I can only do that for the first word with this code:</p>

<pre><code>$('p').each(function(){
    var featureTitle = $(this);
    featureTitle.html( featureTitle.text().replace(/(^\w+)/,'&lt;span&gt;$1&lt;/span&gt;&lt;br/&gt;') );
  });
</code></pre>

<p>Thanks!!</p>
