We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3bed1a commit 1f331d0Copy full SHA for 1f331d0
src/DOMDocumentFactory.php
@@ -26,15 +26,6 @@
26
*/
27
final class DOMDocumentFactory
28
{
29
- /**
30
- * Constructor for DOMDocumentFactory.
31
- * This class should never be instantiated
32
- */
33
- private function __construct()
34
- {
35
- }
36
-
37
38
/**
39
* @param non-empty-string $xml
40
*
@@ -48,7 +39,7 @@ public static function fromString(string $xml): DOMDocument
48
libxml_clear_errors();
49
50
41
$domDocument = self::create();
51
- $options = LIBXML_DTDLOAD | LIBXML_DTDATTR | LIBXML_NONET | LIBXML_PARSEHUGE;
42
+ $options = LIBXML_DTDLOAD | LIBXML_DTDATTR | LIBXML_NONET | LIBXML_PARSEHUGE | LIBXML_NSCLEAN;
52
43
if (defined('LIBXML_COMPACT')) {
53
44
$options |= LIBXML_COMPACT;
54
45
}
0 commit comments