Skip to content

Commit

Permalink
Handle special chars in XmlDocumentWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
ruff committed Jun 5, 2024
1 parent 6da5cf3 commit 566b048
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/XmlDocumentWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public function startElement(string $tag, string $value = ''): XmlDocumentWriter

if ($value) {
$value = trim($value);
$value = htmlspecialchars($value);
}

if ($newNameSpace) {
Expand Down

0 comments on commit 566b048

Please sign in to comment.