title: How to wrap text in span tags except first word with jQuery?
body: <p>Is it possible to wrap the last words in a string with span tags excluding the first word? So it'd be for example:</p>
  
  <pre><code>var string = 'My super text';
  </code></pre>
  
  <p>Becomes</p>
  
  <pre class="lang-html prettyprint-override"><code>My &lt;span&gt;super text&lt;/span&gt;
  </code></pre>
  
  <p>I have this:</p>
  
  <pre><code>var text = string.split(" ");
  
  // drop the last word and store it in a variable
  var last = text.pop();
  
  // join the text back and if it has more than 1 word add the span tag
  // to the last word
  if (text.length &gt; 0) {
     return text.join(" ") + " &lt;span&gt;" + last + "&lt;/span&gt;";
  }
  else {
     return "&lt;span&gt;" + text.join(" ") + last + "&lt;/span&gt;";
  }
  </code></pre>
  
  <p>Which wraps the last word with span tags if it has at least two but not sure how to modify it.</p>