Afform - Fix incorrect html encoding when saving
authorcolemanw <coleman@civicrm.org>
Thu, 15 Feb 2024 16:42:33 +0000 (11:42 -0500)
committercolemanw <coleman@civicrm.org>
Thu, 15 Feb 2024 16:58:06 +0000 (11:58 -0500)
commit3e3c1a6abe8903d61a46e8b3fff87dd44f712959
treea4a76a5f93fa013ed38409d935cda245e890947d
parent12ba587a47ac8b37f23776c86d79f3b65f24e322
Afform - Fix incorrect html encoding when saving

Fixes  https://lab.civicrm.org/dev/core/-/issues/4977

This reverts 0ae1b99 AND 4a439e7 back to the original version which used a simple str_replace.

The problem with 4a439e7 is that function mode is deprecated in php 8.2.
The problem with 0ae1b99 is that it was wrong and broke the html encoding of the file.

So this takes us all the way back to the original version of the function, which worked fine for what it did.
ext/afform/core/CRM/Afform/ArrayHtml.php