From 5e0c5de04a098204e14e0f313a4ed4097743992e Mon Sep 17 00:00:00 2001 From: johnnyshields Date: Thu, 13 Apr 2023 02:58:17 +0900 Subject: Set escape_formulas as "true" as a global default. --- lib/axlsx.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/axlsx.rb') diff --git a/lib/axlsx.rb b/lib/axlsx.rb index 71c0ca1c..1f43103e 100644 --- a/lib/axlsx.rb +++ b/lib/axlsx.rb @@ -220,7 +220,7 @@ module Axlsx # See https://www.owasp.org/index.php/CSV_Injection for details. # @return [Boolean] def self.escape_formulas - !defined?(@escape_formulas) || @escape_formulas.nil? ? false : @escape_formulas + !defined?(@escape_formulas) || @escape_formulas.nil? ? true : @escape_formulas end # Sets whether to treat values starting with an equals sign as formulas or as literal strings. -- cgit v1.2.3