mirror of https://github.com/itflow-org/itflow
Fix 3 Letter Client Abbrevation function to remove htmlentity characters to fix ' being replace with a 0
This commit is contained in:
parent
0c0cb2cec9
commit
f897705135
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue