Fix 3 Letter Client Abbrevation function to remove htmlentity characters to fix ' being replace with a 0

This commit is contained in:
johnnyq 2023-09-19 16:24:41 -04:00
parent 0c0cb2cec9
commit f897705135
1 changed files with 2 additions and 0 deletions

View File

@ -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.