src/Base/AbstractTextElement.php
private function sanitizeText(string $text): string
    {
        $text = preg_replace($this->isMultiLine() ? '/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F]/u' : '/[\x00-\x1F\x7F]/u', '', $text);

        return $text;
    }
private function sanitizeText(string $text): string
    {
        $text = preg_replace($this->isMultiLine() ? '/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F]/u' : '/[\x00-\x1F\x7F]/u', '', $text);

        return $text;
    }
private function sanitizeText ( string $ text ) : string { $ text = preg_replace ( $ this -> isMultiLine ( ) ? '/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F]/u' : '/[\x00-\x1F\x7F]/u' , '' , $ text ) ; return $ text ; }
Sanitizes the text.

@param string $text The text.

@return string The sanitized text.
Sanitizes the text .