diff options
Diffstat (limited to 'src/NodeUtility.php')
-rw-r--r-- | src/NodeUtility.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/NodeUtility.php b/src/NodeUtility.php index 3748f6c..52f2d09 100644 --- a/src/NodeUtility.php +++ b/src/NodeUtility.php @@ -59,7 +59,7 @@ class NodeUtility */ public static function setNodeTag($node, $value, $importAttributes = false) { - $new = new DOMDocument(); + $new = new DOMDocument('1.0', 'utf-8'); $new->appendChild($new->createElement($value)); $children = $node->childNodes; |