Say I have the following link:
<li class="hook">
<a href="i_have_underscores">I_have_underscores</a>
</li>
How would I, remove the underscores only in the text and not the href? I have used str_replace, but this removes all underscores, which isn't ideal.
So basically I would be left with this output:
<li class="hook">
<a href="i_have_underscores">I have underscores</a>
</li>
Any help, much appreciated