File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 *
You can’t perform that action at this time.
0 commit comments