I have this link like so:
$link = '<a href="#" title="box">do something</a>';
Now I need to add html to the end of the text within the anchor tag so it ends up like this:
$link = '<a href="#" title="box">do something<i class="arrow"></i></a>';
I have researched around and my conclusion is that I probably have to use regular expression but I don't know where to start. I know this can be done easily via JS but I need it done in PHP.
Any ideas?