<?php //libxml_disable_entity_loader(true); $dom = new DOMDocument; $dom->substituteEntities = true; $dom->loadXML( <<<'EOXML' <!DOCTYPE x [ <!ENTITY good "(good)"> <!ENTITY bad SYSTEM "/etc/passwd"> ]> <x> <good>&good;</good> <bad>&bad;</bad> </x> EOXML ); echo $dom->saveXML();
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`