summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx.rb
diff options
context:
space:
mode:
authorjohnnyshields <[email protected]>2023-04-13 02:58:17 +0900
committerKoza <[email protected]>2023-10-02 13:37:17 +0200
commit5e0c5de04a098204e14e0f313a4ed4097743992e (patch)
treeee7542cbc9ffdc977fd4d251892b79023c0fbaa6 /lib/axlsx.rb
parentebbeaea97ad7b4a597b34d9283abd74aa2e4e077 (diff)
downloadcaxlsx-5e0c5de04a098204e14e0f313a4ed4097743992e.tar.gz
caxlsx-5e0c5de04a098204e14e0f313a4ed4097743992e.zip
Set escape_formulas as "true" as a global default.
Diffstat (limited to 'lib/axlsx.rb')
-rw-r--r--lib/axlsx.rb2
1 files changed, 1 insertions, 1 deletions
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.