I have a php file with:
$content = str_replace('search old string','by new string',$content);
$content = str_replace('search old string','by new string',$content);
It works for for search and replace or remove a string. But If old string is a paragraph, example:
<table class="adverting_I_want_to_remove">
<tr>
<td>Dynamic Advertise content 1</td>
<td>Dynamic Advertise content 2</td>
</tr>
</table>
How to remove that table in content?
Content
`. That is a table. – smottt Oct 18 '12 at 19:36