diff --git a/module/VuFind/src/VuFind/View/Helper/Root/JsTranslations.php b/module/VuFind/src/VuFind/View/Helper/Root/JsTranslations.php index 8917346f436bcd059a8661947833c509109e4265..51956abd022eceec5e02fa38f334574103219792 100644 --- a/module/VuFind/src/VuFind/View/Helper/Root/JsTranslations.php +++ b/module/VuFind/src/VuFind/View/Helper/Root/JsTranslations.php @@ -99,6 +99,10 @@ class JsTranslations extends AbstractHelper $translation = is_array($v) ? call_user_func_array([$this->transEsc, '__invoke'], $v) : $this->transEsc->__invoke($v); + // Special case: do not escape _html translations: + if (substr($k, -5) === '_html') { + $translation = html_entity_decode($translation); + } $parts[] = '"' . addslashes($k) . '": "' . addslashes($translation) . '"'; }