Hi all I’ve a little php question:
I’ve a many strings like that:
$content = "Hi I am a <a href='http://blabla' ...>black</a> cat";
How can i convert this string to:
$content = "Hi I am a cat";
I tried that but doesn’t works…
$content = preg_replace("/<a href=.*?>(.*?)<\/a>/","$1",$content);
It looks just about right.
I just tried this and it seemed to work fine: