Skip to content

Commit

Permalink
[REF][PHP8.2] Fix deprecated usage of mb_convert_encoding with HTML-E…
Browse files Browse the repository at this point in the history
…ntities
  • Loading branch information
seamuslee001 committed Sep 14, 2023
1 parent b49102d commit 0ae1b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/afform/core/CRM/Afform/ArrayHtml.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/**
Expand Down

0 comments on commit 0ae1b99

Please sign in to comment.