I'm trying to figure out how to go about finding all <a> tags in a string and replacing the spaces within the <a> tag with underscores.
Below is an example:
<a href="path/to/page" class="pageLink">Page Name</a>
Any help would be much appreciated. Thanks.