我有一个像这样的字符串:
<span style="font-weight: bold;">Foo</span>
我想用PHP来制作它
<strong>Foo</strong>
...而不影响其他人span.
span
我怎样才能做到这一点?
php regex preg-replace
php ×1
preg-replace ×1
regex ×1