From f897705135407c7d3a77f6331afb0cc32da74ee8 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 19 Sep 2023 16:24:41 -0400 Subject: [PATCH] Fix 3 Letter Client Abbrevation function to remove htmlentity characters to fix ' being replace with a 0 --- functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions.php b/functions.php index 9a35bba2..9b3df3f1 100644 --- a/functions.php +++ b/functions.php @@ -706,6 +706,8 @@ function removeEmoji($text){ function shortenClient($client) { // Pre-process by removing any non-alphanumeric characters except for certain punctuations. + $client = html_entity_decode($client); // Decode any HTML entities + $client = str_replace("'", "", $client); // Removing all occurrences of ' $cleaned = preg_replace('/[^a-zA-Z0-9&]+/', ' ', $client); // Break into words.