Hi all
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:
Before
<a href="path/to/page" class="pageLink">Page Name</a>
After
<a_href="path/to/page"_class="pageLink">Page_Name</a>
Any help would be much appreciated. Thanks.