sto tentando di cancellare un link del tipo
codice:
<a href="http://www.google.com/"><img src="/banner/images/abc.jpg"></a>
in un div, ma questo codice non funziona

codice:
$htmlContentString = file_get_contents('templates/content.tpl');
$pattern = "<a href=\"".$_POST['url']."\"><img src=\"/banner/images/".$_POST['src']."\"></a>";
str_replace ($pattern, "",$htmlContentString);
file_put_contents('templates/content.tpl', $htmlContentString);
molto probabilmente è il pattern che è scritto male..