I’m sure it’s stupidly easy, but how can I replace just the text within an html tag. For instance, from this:
<div style="display: block;">blah blah</div>
<a href="#" style="display: inline; ">(Old text)</a>
to this:
<div style="display: block;">blah blah</div>
<a href="#" style="display: inline; ">(New text)</a>
replace Old text => New text
Many thanks in advance.
Just select the element and change its contents
References