Skip to content

Commit 92dc58a

Browse files
committed
refactor: rimozione funzione deprecata
1 parent 2e2b2b9 commit 92dc58a

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

plugins/exportFE/src/Validator.php

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -706,34 +706,6 @@ public function prepareForXML($input, $key = null)
706706
return $output;
707707
}
708708

709-
/**
710-
* Removes invalid characters from a UTF-8 XML string.
711-
*
712-
* @deprecated 2.4.34
713-
*
714-
* @param string a XML string potentially containing invalid characters
715-
*
716-
* @return string
717-
*/
718-
public static function sanitizeXML($string)
719-
{
720-
$result = '';
721-
$current = '';
722-
$length = strlen((string) $string);
723-
724-
for ($i = 0; $i < $length; ++$i) {
725-
$current = ord($string[$i]);
726-
727-
if ($current < 0x20 || $current > 0x7E) {
728-
$result .= ' ';
729-
} else {
730-
$result .= chr($current);
731-
}
732-
}
733-
734-
return $result;
735-
}
736-
737709
/**
738710
* Manage and replace invalid characters from a UTF-8 XML string.
739711
*

0 commit comments

Comments
 (0)