How can i remove the link and remain with the text?
text text text.
I suggest you to keep the text in link.
strip_tags($text, '');
or the hard way:
preg_replace('#(.*?)#i', '\1', $text)
If you don't need to keep text in the link
preg_replace('#.*?#i', '', $text)