title: Get certain text replace it and wrap it in span?
body: <p>I have following html<code>&lt;p class="get"&gt;This is some content.&lt;/p&gt;</code> what I would like to do is to make it like this:<code>&lt;p class="get"&gt;This is &lt;span&gt;some&lt;/span&gt; content.&lt;/p&gt;</code>. <br/><br/>To accomplish this I know I should: 1. get my certain text (done that...) 
  <br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2. Wrap my text in span (done that also...)
  <br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;3. replace my text with text that contains my span <b>(haven't done it)</b></p>
  
  <p>My problem is <b>step 3</b> I just can't figure it out. So how can I replace my "old" text with new one?<br>Thank you guys!!!<br>
  <br/><a href="http://jsfiddle.net/V7Wnk/" rel="nofollow"><b>Fiddle here</b></a>
  <br/><br/>My code looks like this:</p>
  
  <pre><code>$(document).ready(function(){
  //get the whole text
  var ptext = $(".get").text().split(" "); 
  var myText = ptext[2]; 
  //alert(ptext[2])
  //alert(myText);
  if($('.get').text().contains(myText)){
  //$('&lt;span&gt;'+myText+'&lt;/span&gt;').appendTo($('.get'));
  }
  else{
  alert('no text');
  }
  });
  </code></pre>