diff --git a/filter/ArticleCrossrefXmlFilter.php b/filter/ArticleCrossrefXmlFilter.php index e3b383b..544962b 100644 --- a/filter/ArticleCrossrefXmlFilter.php +++ b/filter/ArticleCrossrefXmlFilter.php @@ -113,9 +113,9 @@ public function createJournalArticleNode($doc, $submission) // title $titlesNode = $doc->createElementNS($deployment->getNamespace(), 'titles'); - $titlesNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'title', htmlspecialchars($publication->getLocalizedTitle($locale), ENT_COMPAT, 'UTF-8'))); - if ($subtitle = $publication->getData('subtitle', $locale)) { - $titlesNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'subtitle', htmlspecialchars($subtitle, ENT_COMPAT, 'UTF-8'))); + $titlesNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'title', $publication->getLocalizedTitle($locale, 'html'))); + if ($subtitle = $publication->getLocalizedSubTitle($locale, 'html')) { + $titlesNode->appendChild($node = $doc->createElementNS($deployment->getNamespace(), 'subtitle', $subtitle)); } $journalArticleNode->appendChild($titlesNode);