diff options
| author | johnnyshields <[email protected]> | 2023-04-13 02:58:17 +0900 |
|---|---|---|
| committer | Koza <[email protected]> | 2023-10-02 13:37:17 +0200 |
| commit | 5e0c5de04a098204e14e0f313a4ed4097743992e (patch) | |
| tree | ee7542cbc9ffdc977fd4d251892b79023c0fbaa6 /lib/axlsx.rb | |
| parent | ebbeaea97ad7b4a597b34d9283abd74aa2e4e077 (diff) | |
| download | caxlsx-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.rb | 2 |
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. |
