From 45dab2b53d6e913c54be058ffbc92a1040614395 Mon Sep 17 00:00:00 2001 From: Damian Taggart <4309872+attackant@users.noreply.github.com> Date: Fri, 22 Dec 2023 10:52:51 -0700 Subject: [PATCH] Decode HTML entities in link button text to prevent things like ampersands from being displayed as entities The update made in class-link-button.php fixes an issue with HTML entities being displayed in the link button text. By using the 'html_entity_decode' function, these HTML entities are now properly decoded, improving the visual output and user experience. --- includes/apple-exporter/components/class-link-button.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/apple-exporter/components/class-link-button.php b/includes/apple-exporter/components/class-link-button.php index 556600f0..9d24edde 100644 --- a/includes/apple-exporter/components/class-link-button.php +++ b/includes/apple-exporter/components/class-link-button.php @@ -122,7 +122,7 @@ protected function build( $html ) { 'json', [ '#url#' => $url, - '#text#' => $link_button_match[2], + '#text#' => html_entity_decode($link_button_match[2], ENT_QUOTES, 'UTF-8'), ] ); } else {