mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 03:14:52 +00:00
Fix 3 Letter Client Abbrevation function to remove htmlentity characters to fix ' being replace with a 0
This commit is contained in:
@@ -706,6 +706,8 @@ function removeEmoji($text){
|
|||||||
|
|
||||||
function shortenClient($client) {
|
function shortenClient($client) {
|
||||||
// Pre-process by removing any non-alphanumeric characters except for certain punctuations.
|
// 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);
|
$cleaned = preg_replace('/[^a-zA-Z0-9&]+/', ' ', $client);
|
||||||
|
|
||||||
// Break into words.
|
// Break into words.
|
||||||
|
|||||||
Reference in New Issue
Block a user