I have tried this to remove anything from to tags.
$contents = "<object>
fdsfdsfds</object>";
$contents = preg_replace('#(<object[^>]*>)(.*?)(</object>)#xium', '', $contents);
But it does not work.
Any suggestion? Thanks in advance.