clean html a string by element id using php
- by user327140
Hi, as you can see by the subject am looking for a tool for cleaning up a HTML string in php using a HTML id property, example:
According to the following PHP string I wish to clean the HTML erasing the black11
$test = '
<div id="block1">
<div id="block11">Hello1 <span>more html here...</span></div>
<div…