src/Sanitizer.php
protected function removeDoctype()
    {
        foreach ($this->xmlDocument->childNodes as $child) {
            if ($child->nodeType === XML_DOCUMENT_TYPE_NODE) {
                $child->parentNode->removeChild($child);
            }
        }
    }
protected function removeDoctype()
    {
        foreach ($this->xmlDocument->childNodes as $child) {
            if ($child->nodeType === XML_DOCUMENT_TYPE_NODE) {
                $child->parentNode->removeChild($child);
            }
        }
    }
protected function removeDoctype ( ) { foreach ( $ this -> xmlDocument -> childNodes as $ child ) { if ( $ child -> nodeType === XML_DOCUMENT_TYPE_NODE ) { $ child -> parentNode -> removeChild ( $ child ) ; } } }
Remove the XML Doctype
It may be caught later on output but that seems to be buggy, so we need to make sure it's gone
Remove the XML Doctype It may be caught later on output but that seems to be buggy so we need to make sure it s gone