here, i searched for this and i havent found or understood any similar solution to this problem.
in case i have this string
[code=html]
<div id=”to_remove”> </div>
<div id=”retain”>Do Not Remove</div>
<a class=”to_remove”>Remove</a><br/>
<div class=”to_retain”>This</div>
<input onclick=”remove this;”/>
how can i remove the html tag with id and class `to_remove`onclick`onload
thank you for a kind response..
function would look like
[code=php]
function strip_selected_tags_by_id_or_class($array_of_id_or_class){
//logic…
}
the output would be…
[code=html]
<div id=”retain”>Do Not Remove</div><br/>
<div class=”to_retain”>This</div>
<input />