Open jdkolassa opened 6 years ago
I think sunra has only forked the source and added things like namespace, so you have to report this to their sourceforge page
Ah, good point.
Here's how I solved it.
$childNode = $dom->find('Your Child Node');
$childNode->setAttribute('outertext','');
As far as I can determine, Simple HTML DOM does not have a way to actually remove DOM elements from a document. This can be troublesome, especially if you're using mpdf to make a PDF file and there's an
<svg>
tag in there; mpdf flips out whenever it sees one.There may be a good reason removeChild() has not been implemented, but as a suggestion for a future update, could such a function be implemented?