summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/axlsx/workbook/worksheet/cell.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/axlsx/workbook/worksheet/cell.rb b/lib/axlsx/workbook/worksheet/cell.rb
index 126b24cd..cfcb6118 100644
--- a/lib/axlsx/workbook/worksheet/cell.rb
+++ b/lib/axlsx/workbook/worksheet/cell.rb
@@ -444,6 +444,9 @@ module Axlsx
v ? 1 : 0
else
@type = :string
+ v.to_s
+ # TODO find a better way to do this as it accounts for 30% of
+ # processing time in benchmarking...
::CGI.escapeHTML(v.to_s)
end
end