diff --git a/src/Spout/Common/Escaper/XLSX.php b/src/Spout/Common/Escaper/XLSX.php index 7c6c61b..d11e535 100644 --- a/src/Spout/Common/Escaper/XLSX.php +++ b/src/Spout/Common/Escaper/XLSX.php @@ -124,6 +124,10 @@ class XLSX implements EscaperInterface */ protected function escapeControlCharacters($string) { + if (1 !== preg_match('~[^A-Za-z0-9\-.:, ]~', $string)) { + return $string; + } + $escapedString = $this->escapeEscapeCharacter($string); // if no control characters