I'd like to surround text section of a link with a <span> tag. So that;
<a class="button" href="#">Text</a>
becomes
<a class="button" href="#"><span>Text</span></a>
I'd like to achieve this using only JavaScript, however, I am open to suggestions.
Thanks in advance for the help