Skip to content

Commit

Permalink
pkp/pkp-lib#9959 use createTextNode for article 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 8113649 commit ba3b763
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion filter/ArticleCrossrefXmlFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ public function createJournalArticleNode($doc, $submission)
$titlesNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'title'));
$node->appendChild($doc->createTextNode($publication->getLocalizedTitle($lang, 'html')));
if ($subtitle = $publication->getLocalizedSubTitle($lang, 'html')) {
$titlesNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'subtitle', $subtitle));
$titlesNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'subtitle'));
$node->appendChild($doc->createTextNode($subtitle));
}
$journalArticleNode->appendChild($titlesNode);
$languageCounter++;
Expand Down

0 comments on commit ba3b763

Please sign in to comment.