PHP 8 - libxml_disable_entity_loader() has been deprecated. How do I replace the functionality it provides?
PHP Snippet 1:
...
$current = @libxml_disable_entity_loader(false);
$domdocument->load($filename,$options);
@libxml_disable_entity_loader($current);
...
PHP Snippet 2:
...
$domdocument->loadXML(file_get_contents($filename),$options);
...