zendframework/zendxml
ZendXml provides secure XML scanning/loading for PHP to help prevent XXE and XML entity expansion (XEE) attacks. It disables external entity loading and rejects documents using ENTITY declarations, returning SimpleXMLElement or DOMDocument. Repository abandoned; moved to laminas/laminas-xml.
#6 adds the following method:
Security::scanHtml(
string $html,
DOMDocument $dom = null,
int $libXmlConstants = 0
) : SimpleXMLElement|DOMDocument|bool
This method allows scanning markup known to be HTML, versus assuming the markup is generic XML.
^5.3.3 || ^7.0 and PHPUnit ^3.7 || ^4.0, ensuring better compatibility with other components, and with PHP 7. The test matrix was also expanded to add PHP 7 as a required platform.How can I help you explore Laravel packages today?