title: how to replace text inside span using jQuery
body: <p>I have a span like this: </p>
  
  <pre><code>&lt;span class="savings"&gt;92% sale&lt;/span&gt;
  </code></pre>
  
  <p>And I want to change the content inside the span with <code>"25% sale".</code></p>
  
  <p>I'm trying this: </p>
  
  <pre><code>$("span.savings").text(function () {
      return $(this).text().replace("", "25% sale"); 
  });
  </code></pre>
  
  <p>But this method adds the "25% sale" near the "92% sale".</p>
  
  <p>How can I do this?</p>