Skip to content

Commit

Permalink
HPC-9877: Fix encoding of sub articles
Browse files Browse the repository at this point in the history
  • Loading branch information
berliner committed Nov 11, 2024
1 parent 79b4f9d commit 26ef8e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -681,8 +681,8 @@ private function renderDomNode(\DOMNode $node) {
// PHP DOMElement don't have a innerHTML property so this is the current way
// of getting it.
// @see https://bugs.php.net/bug.php?id=44762
return implode('', array_map(function ($child) {
return $child->ownerDocument->saveXML($child);
return implode('', array_map(function (\DOMNode $child) {
return mb_convert_encoding($child->ownerDocument->saveXML($child), 'ISO-8859-1');
}, iterator_to_array($node->childNodes)));
}

Expand Down

0 comments on commit 26ef8e7

Please sign in to comment.