I'm using:
$this->tresc[$i][description]=preg_replace("/\<a .*\>.*\<\/a\>/i", "", $this->tresc[$i][description]);
to remove links.
Sometimes the links are having images inside I would like to keep:
<a href="http://www.domain.com/page.php"><img src="http://domain.com/image.jpg" alt="Image" align="left" /></a>
Is this possible ? Now everything beetween <a>
and </a>
is removed.