Skip to content

Commit

Permalink
pkp/pkp-lib#9959 use createTextNode for preprint subtitle in order to…
Browse files Browse the repository at this point in the history
… escapt it (e.g. &) properly
  • Loading branch information
bozana committed May 22, 2024
1 parent f7cb5d9 commit 2bf424e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion filter/PreprintCrossrefXmlFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ public function createPostedContentNode($doc, $publication, $submission)
$titlesNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'title'));
$node->appendChild($doc->createTextNode($publication->getLocalizedTitle($submission->getLocale(), 'html')));
if ($subtitle = $publication->getLocalizedSubTitle($submission->getLocale(), 'html')) {
$titlesNode->appendChild($doc->createElementNS($deployment->getNamespace(), 'subtitle', $subtitle));
$titlesNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'subtitle'));
$node->appendChild($doc->createTextNode($subtitle));
}
$postedContentNode->appendChild($titlesNode);

Expand Down

0 comments on commit 2bf424e

Please sign in to comment.