title: Replacing a string inside a a tag with a different string of text
body: <p>I know this should be simple but I can't make it work. I have some text inside an  tag which I need to change. It's rendered by my CMS so I can't change it on the back end. Here is the html.</p>
  
  <pre><code>&lt;a href="/OrderRetrievev2.aspx?CatalogueID=105038" class="cartSummaryLink"&gt;View Cart&lt;/a&gt;
  </code></pre>
  
  <p>I need to change "View Cart" to "View Summary". Here is what I was trying to use with my jQuery.</p>
  
  <pre><code>    $'a.cartSummaryLink').text().replace("View Cart" , "View Summary");
  </code></pre>
  
  <p>It's not working. Thanks in advance for any help our suggestions!</p>