How to replace <span style="font-weight: bold;">foo</span> by <strong>foo</strong> using PHP and reg
- by anon
I have a string like this:
<span style="font-weight: bold;">Foo</span>
I want to use PHP to make it
<strong>Foo</strong>
…without affecting other spans.
How can I do this?