How to remove the link and stay with the text?
text text text. <br><a href='http://www.example.com' target='_blank' title='title' style='text-decoration:none;'>name</a>
like this:
text text text. <br>
I still have a problem .....
$text = file_get_contents('http://www.example.com/file.php?id=name'); echo preg_replace('#<a.*?>.*?</a>#i', '', $text)
in this url was this text (with link) ...
this code does not work ...
what's wrong?
Can someone help me?
source share