Example:
$string = '<div class="teste"> Hello word </div> Hello pessoal';
I want to remove the div containing the test class and its contents.
Example:
$string = '<div class="teste"> Hello word </div> Hello pessoal';
I want to remove the div containing the test class and its contents.
This PHP library allows you to modify HTML content: