diff --git a/ext/afform/core/CRM/Afform/ArrayHtml.php b/ext/afform/core/CRM/Afform/ArrayHtml.php index 92a2caca84c2..307e16b09821 100644 --- a/ext/afform/core/CRM/Afform/ArrayHtml.php +++ b/ext/afform/core/CRM/Afform/ArrayHtml.php @@ -371,7 +371,7 @@ protected function decodeAttrValue($type, $txtAttrValue) { * @return string */ public function replaceUnicodeChars($markup) { - return mb_convert_encoding($markup, 'HTML-ENTITIES', 'UTF-8'); + return htmlspecialchars_decode(htmlentities($markup, ENT_COMPAT, 'utf-8', FALSE)); } /**