I have the following string = '<strong> <hello> text <http://www.google.com> mera';
What I want is to strip tags, but with the exception of the the tag beginning with http://
I have the following preg_replace
echo preg_replace('#<[^http].*?>#', '', $str);
But this also makes an exception of <hello>.
I am completely stuck.
That is why I ask you.