replace a text with another within a tag
<p>I'm sure it's stupidly easy, but how can I replace just the text within an html tag. For instance, from this:</p>

<pre><code>&lt;div style="display: block;"&gt;blah blah&lt;/div&gt;
&lt;a href="#" style="display: inline; "&gt;(Old text)&lt;/a&gt;
</code></pre>

<p>to this:</p>

<pre><code>&lt;div style="display: block;"&gt;blah blah&lt;/div&gt;
&lt;a href="#" style="display: inline; "&gt;(New text)&lt;/a&gt;
</code></pre>

<p>replace Old text => New text<br>
Many thanks in advance.</p>
