Skip to content

Commit

Permalink
set default attributes on DOMDocument
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasReker committed Sep 15, 2024
1 parent 5074e80 commit 32ee76d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Services/Util/DomDocumentWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ private function createDomDocument(): \DOMDocument
$domDocument = new \DOMDocument();
$domDocument->formatOutput = false;
$domDocument->preserveWhiteSpace = false;
$domDocument->encoding = 'UTF-8';
$domDocument->xmlVersion = '1.0';

return $domDocument;
}
Expand Down

0 comments on commit 32ee76d

Please sign in to comment.