diff --git a/classes/publication/PKPPublication.php b/classes/publication/PKPPublication.php index 1d0eb71c81e..b14c6bf8c6e 100644 --- a/classes/publication/PKPPublication.php +++ b/classes/publication/PKPPublication.php @@ -101,7 +101,7 @@ public function getLocalizedTitle($preferredLocale = null, string $format = 'tex break; case 'text': // Title is in HTML, prefix is already in text. Convert title. - $title = strip_tags($title); + $title = htmlspecialchars_decode(strip_tags($title)); break; default: throw new \Exception('Invalid format!'); } @@ -126,7 +126,7 @@ public function getLocalizedSubTitle($preferredLocale = null, string $format = ' $subTitle = $this->getLocalizedData('subtitle', $preferredLocale); if ($subTitle) { - return strtolower($format) === 'text' ? strip_tags($subTitle) : $subTitle; + return strtolower($format) === 'text' ? htmlspecialchars_decode(strip_tags($subTitle)) : $subTitle; } return '';